sh: 1: ionic: not found
npm ERR! weird error 127
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! not ok code 0
How can I fix it ?
I tried copy node_modules from server/
and bellow command
$ sudo npm install -g ionic
##############
below this npm-debug-log file
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'start', 'debug' ]
2 info using npm@1.3.10
3 info using node@v0.10.25
4 error Error: ENOENT, open '/home/vagrant/ionic-photo-gallery/ionic/node_modules/debug/package.json'
5 error If you need help, you may report this log at:
5 error http://github.com/isaacs/npm/issues
5 error or email it to:
5 error npm-@googlegroups.com
6 error System Linux 3.13.0-170-generic
7 error command "/usr/bin/nodejs" "/usr/bin/npm" "start" "debug"
8 error cwd /home/vagrant/ionic-photo-gallery/ionic
9 error node -v v0.10.25
10 error npm -v 1.3.10
11 error path /home/vagrant/ionic-photo-gallery/ionic/node_modules/debug/package.json
12 error code ENOENT
13 error errno 34
14 verbose exit [ 34, true ]
I was success -> server/ -> npm start
but ionic/ -> "npm start " occured below error
npm start
sh: 1: ionic: not found npm ERR! weird error 127 npm WARN This failure might be due to the use of legacy binary "node" npm WARN For further explanations, please read /usr/share/doc/nodejs/README.Debian
npm ERR! not ok code 0
How can I fix it ?
I tried copy node_modules from server/
and bellow command $ sudo npm install -g ionic
############## below this npm-debug-log file
0 info it worked if it ends with ok 1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'start', 'debug' ] 2 info using npm@1.3.10 3 info using node@v0.10.25 4 error Error: ENOENT, open '/home/vagrant/ionic-photo-gallery/ionic/node_modules/debug/package.json' 5 error If you need help, you may report this log at: 5 error http://github.com/isaacs/npm/issues 5 error or email it to: 5 error npm-@googlegroups.com 6 error System Linux 3.13.0-170-generic 7 error command "/usr/bin/nodejs" "/usr/bin/npm" "start" "debug" 8 error cwd /home/vagrant/ionic-photo-gallery/ionic 9 error node -v v0.10.25 10 error npm -v 1.3.10 11 error path /home/vagrant/ionic-photo-gallery/ionic/node_modules/debug/package.json 12 error code ENOENT 13 error errno 34 14 verbose exit [ 34, true ]