Error to try to execute: npm run build-android-bundle using webpack


#1

Hi guys.

I’m trying to compile my project using webpack and I have faced a lot of issues and I guess I’m getting close to the solution, but unfortunately now I’m facing this sh: ns-bundle: command not found problem.

I’m executing this command $ npm run build-android-bundle and I’m getting this error:

> @ build-android-bundle /Users/twan/Documents/wplex/workspace/fenixnoponto
> npm run ns-bundle --android --build-app


> @ ns-bundle /Users/twan/Documents/wplex/workspace/fenixnoponto
> ns-bundle

sh: ns-bundle: command not found

npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "ns-bundle" "--android" "--build-app"
npm ERR! node v6.9.5
npm ERR! npm  v3.10.10
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! @ ns-bundle: `ns-bundle`
npm ERR! spawn ENOENT

Do you have any idea about what I can do?

Thanks


#2

You can try this :
rm -rf node_modules/ platforms/ hooks and also remove the *.aot.* files at the root of your projects (not in the app folder).

This can be an issue with those files especially if you have saved it in a git project.


#3

Hi @Eric.

Thank you for your time and answer :slight_smile: I did it and it worked.

Thanks