Skip to content

Can't run npm build-ios-bundle and others script #2896

@robophil

Description

@robophil

Did you verify this is a real problem by searching Stack Overflow and the other open issues in this repo?

yes

Tell us about the problem

I'm testing out webpack following the instructions
here, but when i run

npm run start-ios-bundle
npm run build-ios-bundle

and other commands in the script section of my package.json, I see

Running webpack for ios...
/bin/sh: webpack: command not found
child process exited with code 127

Which platform(s) does your issue occur on?

Both

Please provide the following version numbers that your issue occurs with:

  • CLI: 3.0.3
  • Cross-platform modules: 3.0.1
  • Runtime(s): 3.0.1

Please tell us how to recreate the issue in as much detail as possible.

run any of the script below
**UPDATE
npm install to fix dependencies

"scripts": {
    "test": "",
    "ns-bundle": "ns-bundle",
    "publish-ios-bundle": "npm run ns-bundle --ios --publish-app",
    "start-android-bundle": "npm run ns-bundle --android --run-app",
    "start-ios-bundle": "npm run ns-bundle --ios --run-app",
    "build-android-bundle": "npm run ns-bundle --android --build-app",
    "build-ios-bundle": "npm run ns-bundle --ios --build-app"
  }

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

npm run start-ios-bundle
npm run build-ios-bundle

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions