“离子开始项目名称”不使用Ionic Framework [英] "Ionic start projectName" not working with Ionic Framework

查看:122
本文介绍了“离子开始项目名称”不使用Ionic Framework的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 Ubuntu 14.04

我在Ubuntu 14.04上关于如何安装Ionic Framework的教程,包括官方指南,基本上只需执行以下操作:

I've followed a couple of tutorials on how to install the Ionic Framework on Ubuntu 14.04, including the official guide, basically just doing the following:

sudo npm install -g ionic
sudo npm install -g cordova 

然后运行命令 ionic start myproject ,但我只是得到没有回应...只是一个新行在终端,当我检查目录,没有创建任何内容。我也尝试了 sudo ionic start myproject ,但是也只是返回一个新行,并且项目尚未创建。

Then I run the command ionic start myproject, but I just get no response...just a new line in the terminal, and when I check the directory, nothing has been created. I also tried sudo ionic start myproject, but that also just returns a new line and the project has not been created.

我也运行 ionic --help ,它再次返回一个新行,没有别的。

I have also run ionic --help, which again returns a new line and nothing else.

当我运行 npm ls 时,我可以看到cordova和ion已经全局安装。

when I run npm ls, I can see that both cordova and ionic have been installed globally.

我需要做什么才能使离子运行,这样我可以运行命令 ionic start whateverProject 并创建了一个新项目?

What do I need to do in order to get ionic up and running, so that I can run the command ionic start whateverProject and have a new project created?

谢谢!

推荐答案

http://askubuntu.com/questions/538996/executing-certain-commands-do-absolutely-nothing\">http://askubuntu.com/questions/538996/executing-certain-commands-do-absolutely-nothing

Try this: http://askubuntu.com/questions/538996/executing-certain-commands-do-absolutely-nothing

简而言之:let $(which node)指向 $ nodejs),例如使用符号链接

In short: let $(which node) point to $(which nodejs), for example using a symlink

这篇关于“离子开始项目名称”不使用Ionic Framework的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆