After upgrading the Ionic version, create a new project report error Initializing app bug fix

Source: Internet
Author: User

command line, after entering the project path, run

Ionic start myApp--v2

After the command is executed, the following error is reported

Installing NPM packages ...
Error with start undefined
Error Initializing App:there was a error with the spawned Command:npminstall
There was a error with the spawned Command:npminstall
Caught exception:
Undefined

From Githut it is because node and NPM versions are low and the workaround is as follows

https://github.com/driftyco/ionic-cli/issues/1089

1. Upgrade node

Win under the direct official website Download the latest installation package https://nodejs.org/en/

Run commands under OS X

NPM install-g N

2. Upgrade NPM

Upgrade NPM

3. Registry re-registration set new registry

NPM Set Registry http://registry.npmjs.org

4. As a result, following the steps above,

Cordova version is also low, had to continue to upgrade Cordova

NPM install-g Cordova

But continue to error.

No answer from GitHub, try to exit the project path and try again, the result is successful ..., so the upgrade and installation, or the installation path of node.

After upgrading the Ionic version, create a new project report error Initializing app bug fix

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.