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