martinmicunda / ionic-photo-gallery

A hybrid app with authentication that allows registered users view a gallery of photos they have uploaded via the camera phone.
MIT License
174 stars 76 forks source link

npm start error #16

Open kimsijin33 opened 3 years ago

kimsijin33 commented 3 years ago

I was success -> server/ -> npm start image

but ionic/ -> "npm start " occured below error

npm start

ionic-photo-gallery-ionic@0.0.0 start /home/vagrant/ionic-photo-gallery/ionic ionic serve -s -c --lab

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 ]