不能运行离子.接收“未找到命令‘离子’" [英] Cannot run ionic. receives "No command 'ionic' found"

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

问题描述

我想开始使用 ionic 框架,但不幸的是我已经在第一步失败了.

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.

谢谢

推荐答案

好吧,我终于找到了.

ionic 安装在/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天全站免登陆