“离子启动projectName”不适用于Ionic Framework

时间:2022-05-12 19:50:07

I am using Ubuntu 14.04.

我使用的是Ubuntu 14.04。

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:

我已经关注了如何在Ubuntu 14.04上安装Ionic Framework的几个教程,包括官方指南,基本上只是执行以下操作:

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

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 start myproject,但我没有得到任何响应......只是终端中的一个新行,当我检查目录时,没有创建任何内容。我也尝试过sudo ionic start myproject,但这也只是返回一个新行并且项目尚未创建。

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

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

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

当我运行npm ls时,我可以看到全局安装了cordova和ionic。

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?

为了让离子启动和运行,我需要做什么才能运行命令ionic start whateverProject并创建一个新项目?

Thanks!

谢谢!

2 个解决方案

#1


4  

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

试试这个:https://askubuntu.com/questions/538996/executing-certain-commands-do-absolutely-nothing

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

简而言之:让$(哪个节点)指向$(哪个nodejs),例如使用符号链接

#2


0  

May be you have to follow this steps:-

可能你必须按照以下步骤: -

  1. ionic start myApp tabs
  2. 离子启动myApp选项卡
  3. cd myApp
  4. cd myApp
  5. ionic platform add android
  6. 离子平台添加android
  7. ionic build android
  8. 离子构建android
  9. ripple emulate --path www
  10. 波纹模拟 - 路径www
  11. ionic emulate android
  12. 离子模仿android

#1


4  

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

试试这个:https://askubuntu.com/questions/538996/executing-certain-commands-do-absolutely-nothing

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

简而言之:让$(哪个节点)指向$(哪个nodejs),例如使用符号链接

#2


0  

May be you have to follow this steps:-

可能你必须按照以下步骤: -

  1. ionic start myApp tabs
  2. 离子启动myApp选项卡
  3. cd myApp
  4. cd myApp
  5. ionic platform add android
  6. 离子平台添加android
  7. ionic build android
  8. 离子构建android
  9. ripple emulate --path www
  10. 波纹模拟 - 路径www
  11. ionic emulate android
  12. 离子模仿android