“离子启动项目名称"不使用离子框架 [英] "Ionic start projectName" not working with Ionic Framework

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

问题描述

我正在使用 Ubuntu 14.04.

我已经学习了一些关于如何在 Ubuntu 14.04 上安装 Ionic 框架的教程,包括官方指南,基本上只是做以下事情:

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 和ionic 都已全局安装.

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

我需要做什么才能启动并运行 ionic,以便我可以运行命令 ionic start nothingProject 并创建一个新项目?

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?

谢谢!

推荐答案

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

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

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

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

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