离子 2 启动失败,生成的命令出错

ionic 2 start fails with error with the spawned command

已在 windows 7

上安装了 ionic 2 beta
npm install -g ionic@beta

似乎安装正常。它是 2.0.0-beta.25

当我尝试创建项目时

ionic start test tabs --v2 --ts

它在安装 npm 包时失败...位

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

非常感谢任何帮助...

我也遇到了类似的问题。通过 运行 以下命令恢复到 2.0.0-beta.22:

npm 安装-g ionic@2.0.0-beta.22

很多人用 2.0.0-beta.25 报告这个问题

更新 NPM a Node.js 对我有用Windows:

  • Win 7,教授
  • NPM 版本:3.10.2
  • Node.js版本:4.4.6

命令 ionic start test sidemenu --2 --ts 很有魅力。

对我来说,问题出在 npm 中...更新 npm install -g npm 到 v3.10 后一切正常。

试试这个,对我有用

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

cd test

npm install

好像是ionic或者别的什么的bug。

通过为我覆盖旧作品,在同一目录中以相同名称重新创建新应用!