离子 2 ubuntu 15.0.4 不工作

ionic 2 ubuntu 15.0.4 not working

我试图在 ubuntu 15.0.4 桌面上设置 ionic 2 开发环境,但没有成功:

xxx@ubuntu:~$ ionic start testaaa

One awesome Ionic app coming right up...

Creating Ionic app in folder /home/xxx/testaaa based on tabs project
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
xxx@ubuntu:~$ npm -v
2.15.0
xxx@ubuntu:~$ ionic -v
2.0.0-beta.23

我是 ionic 的新手。谁能帮帮我?

我看到您正在尝试使用 Ionic beta 23。请恢复到 beta 22 并重试。您可以使用以下命令。

npm install -g ionic@2.0.0-beta.22

(正如 mike 所说,这个问题将在下一个版本的 ionic 中解决)。

希望对您有所帮助。谢谢