ionic 2 start fails with error with the spawned command

∥☆過路亽.° 提交于 2019-12-23 07:54:54

问题


have installed ionic 2 beta on windows 7

npm install -g ionic@beta

seems to install ok. it's 2.0.0-beta.25

when I try to create a project

ionic start test tabs --v2 --ts

it fails on the Installing npm packages ... bit with

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

would appreciate any help...


回答1:


I too faced the similar problem. Revert to 2.0.0-beta.22 by running the following command:

npm install -g ionic@2.0.0-beta.22

Many people reporting this issue with 2.0.0-beta.25




回答2:


For me the problem was in npm... After updating npm install -g npm it to v3.10 everything worked fine.




回答3:


Updating NPM a Node.js worked for me on Windows:

  • Win 7, Prof
  • NPM version: 3.10.2
  • Node.js version: 4.4.6

Command ionic start test sidemenu --2 --ts worked like charm.




回答4:


try this, it works for me

ionic start test tabs --v2 --skip-npm

cd test

npm install

it seems to be a bug of ionic or something else.




回答5:


Recreating new app on same directory and with same name by overwriting the older works for me!



来源:https://stackoverflow.com/questions/36752157/ionic-2-start-fails-with-error-with-the-spawned-command

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!