0%

ionic start错误

执行ionic start my-app --v2时出现以下错误:

1
2
3
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

这个错误是由于npm版本太旧造成的,执行以下命令:

1
npm install -g npm