我试图在ubuntu 15.0.4桌面上设置离子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
我是离子的新手。任何人都可以帮助我吗?
答案 0 :(得分:2)
我可以看到你正在尝试使用Ionic beta 23.请恢复测试版22并再试一次。您可以使用以下命令。
npm install -g ionic@2.0.0-beta.22
(正如迈克here所说,这个问题将在下一版离子中得到解决。)
希望这会对你有所帮助。感谢。