2016-04-03 72 views
1

我试图安装Ubuntu的15.0.4桌面上的离子2开发环境,但它没有工作:离子2 Ubuntu的15.0.4不工作

[email protected]:~$ 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 
[email protected]:~$ npm -v 
2.15.0 
[email protected]:~$ ionic -v 
2.0.0-beta.23 

我是新来的离子键。谁能帮我?

回答

2

我可以看到您正在尝试使用Ionic beta 23.请返回到beta 22并重试。你可以使用下面的命令。

npm install -g [email protected] 

(由Mike here说,这个问题将在离子的下一个版本解决)。

希望这可以帮助你。谢谢。

+1

是的!这解决了我的问题。我的第一个问题在stackoverflow和我收到的第一个答案。非常感谢Raja。我怎么能给你信用?只需将其标记为答案? – lola

+0

这没关系......(我被困在这个问题上..很高兴帮助你..谢谢) –

+0

@RajaYogan请检查此问题http://stackoverflow.com/questions/36685757/getting-error-after-installing -ionic2-I-AM-无法对创建-AN-ionic1项目?noredirect = 1#comment60961424_36685757 –