ionic-cli icon indicating copy to clipboard operation
ionic-cli copied to clipboard

Error on start

Open adsonrocha opened this issue 10 years ago • 11 comments

Installing npm packages... Error with start undefined Error Initializing app: There was an error with the spawned command: npminstall There was an error with the spawned command: npminstall Caught exception: undefined

adsonrocha avatar Oct 11 '16 13:10 adsonrocha

I run into the same; ran with --verbose and got the following additional info (but I'm still not sure how to resolve it):

node v4.6.0 npm ERR! npm v2.15.9 npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package [email protected] does not satisfy its siblings' peerDependencies requirements! npm ERR! peerinvalid Peer @angular/[email protected] wants [email protected] npm ERR! peerinvalid Peer @angular/[email protected] wants [email protected]

bholub avatar Oct 11 '16 16:10 bholub

Same.

rhedin avatar Oct 11 '16 19:10 rhedin

Installing npm packages... Error with start undefined Error Initializing app: There was an error with the spawned command: npminstall There was an error with the spawned command: npminstall Caught exception: undefined

Mind letting us know? https://github.com/driftyco/ionic-cli/issues

Node - 4.4.7 NPM - 3.10.8 ionic - 2.0.0beta.37 Cordova - 6.3.1

sunilachyut avatar Oct 11 '16 19:10 sunilachyut

Please retry the command with the --verbose flag and it should provide more details. @bholub this sounds like we have some mismatch in ionic framework. I will ensure this is addressed in driftyco/ionic.

jthoms1 avatar Oct 11 '16 23:10 jthoms1

@bholub Is this with a Could you try upgrading your npm install to npm 3 and trying again? To update to npm 3 you can simply run npm install -g npm. Thanks!

jgw96 avatar Oct 12 '16 00:10 jgw96

Updating npm fixed it for me. Thanks!

bholub avatar Oct 12 '16 03:10 bholub

`npm ERR! Darwin 15.6.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" npm ERR! node v4.6.0 npm ERR! npm v2.15.9

npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package [email protected] does not satisfy its siblings' peerDependencies requirements! npm ERR! peerinvalid Peer @angular/[email protected] wants [email protected]

npm ERR! peerinvalid Peer @angular/[email protected] wants [email protected]

npm ERR! Please include the following file with any support request: npm ERR! /Users/newan/myApp/npm-debug.log

Spawn command completed Error with start undefined Error Initializing app: There was an error with the spawned command: npminstall There was an error with the spawned command: npminstall Caught exception: undefined

Mind letting us know? https://github.com/driftyco/ionic-cli/issues`

OSX: node -v v4.6.0

ionic-CLI v2.1.0

Edit: reinstall node > 6, fixed it

Newan avatar Oct 12 '16 10:10 Newan

even after updating node version, i am getting above error.

Installing npm packages... Error with start undefined Error Initializing app: There was an error with the spawned command: npminstall There was an error with the spawned command: npminstall Caught exception: undefined

Mind letting us know? https://github.com/driftyco/ionic-cli/issues

node -v v4.6.0

Your system information:

Cordova CLI: 6.3.1 Ionic CLI Version: 2.1.0 Ionic App Lib Version: 2.0.0-beta.20 OS: Windows 7 SP1 Node Version: v4.6.0

plnkr2015 avatar Oct 13 '16 15:10 plnkr2015

upgrading npm version to 3 fixed the issue. thanks,

plnkr2015 avatar Oct 13 '16 15:10 plnkr2015

My issue was due to proxy settings, once I changed the settings its working like a charm. Thanks jthoms1, your idea of running the command with verbose helped me uncover the network issue.

sunilachyut avatar Oct 14 '16 13:10 sunilachyut

We recently released a new version of the CLI that should allow us to gather more insight into NPM issues. Could you please update your CLI to at least 2.1.4?

npm install -g ionic@latest

Thank you!

jthoms1 avatar Oct 26 '16 21:10 jthoms1