不能运行离子。收到“没有命令'离子'找到” [英] Cannot run ionic. receives "No command 'ionic' found"

查看:147
本文介绍了不能运行离子。收到“没有命令'离子'找到”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开始使用离子框架,但不幸的是我已经失败了第一步。

I want to start using the ionic framework, but unfortunately I'm already failing on the first step.

我正在运行Ubuntu 13.04并且我有节点v0。 10.25安装。
我安装了离子,在他们的文档中描述:

I am running Ubuntu 13.04 and I have node v0.10.25 installed. I've installed ionic, at described in their docs:

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

安装顺利,没有错误或警告,但安装后我类型

The installation went well, no errors or warnings, but after the installation I type

ionic

我收到错误:

No command 'ionic' found, did you mean:
 Command 'ionice' from package 'util-linux' (main)
 Command 'sonic' from package 'sonic' (universe)
ionic: command not found

我对ubuntu很新,所以我可能没有正确配置,但我找不到。

I'm pretty new to ubuntu so I might have something not configured correctly, but I can't find what.

谢谢

推荐答案

我终于找到了它。

离子装置位于/ home / guy / npm / bin / ionic,而不是/ usr / bin / ionic应该是。

The ionic installation was at /home/guy/npm/bin/ionic, not at /usr/bin/ionic at it should be.

解决了它使用:


sudo ln -s /home/guy/npm/bin/ionic /usr/bin/ionic

谢谢!

这篇关于不能运行离子。收到“没有命令'离子'找到”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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