ionic 1.3无法启动新应用

时间:2016-08-16 16:58:15

标签: angularjs ionic-framework

我安装了成功安装的离子v 1.3(意味着安装过程中没有错误)。安装后,当我运行以下命令

ionic start myApp tabs

然后它给出了以下输出

Downloading: https://github.com/driftyco/ionic-app-base/archive/master.zip
[=============================]  100%  0.0s
Downloading: https://github.com/driftyco/ionic-starter-tabs/archive/master.zip
[=============================]  100%  0.0s
Installing npm packages...
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
Caught exception:
 undefined

然后我还在项目目录

中运行了以下命令
ionic serve

这给了我以下输出

Couldn't find ionic.config.json file. Are you in an Ionic project?

我也卸载并重新安装离子但仍然遇到上述错误。

如何解决这些问题?

1 个答案:

答案 0 :(得分:0)

基于此ionic 2 start fails with error with the spawned command我猜你可能需要更新你的节点版本和npm。