Ionic-cli: Error on start

Created on 11 Oct 2016  路  11Comments  路  Source: ionic-team/ionic-cli

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

Most helpful comment

@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!

All 11 comments

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]

Same.

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

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.

@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!

Updating npm fixed it for me. Thanks!

`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

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

upgrading npm version to 3 fixed the issue. thanks,

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.

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!

Was this page helpful?
0 / 5 - 0 ratings