[英]error to ionic in ubuntu 17.10.1
friends I have the following problem to install ionic 朋友我有以下问题安装离子
I already have correctly installed nodejs and npm 我已经正确安装了nodejs和npm
then install ionic with sudo npm install -g ionic 然后使用sudo npm install -g ionic安装ionic
when I try to consult the installed version, I find the following error: 当我尝试查阅已安装的版本时,发现以下错误:
ionic –v
[ERROR] Unable to find command: –v [错误]无法找到命令:–v
You may need to be in an Ionic project directory.
the strange thing is that I was able to install monaca and that works well, although monaca also uses ionic. 奇怪的是,尽管monaca也使用离子膜,但我能够安装monaca并运行良好。
What I can do? 我可以做什么? Thanks
谢谢
You are using a dash character (–) instead of the hyphen (-). 您正在使用破折号(-)而不是连字符(-)。
When I run your command ( ionic –v
) on Ubuntu 16.04 I get that same error, but then if I use the hyphen ( ionic -v
) I get the version out. 当我在Ubuntu 16.04上运行您的命令(
ionic –v
)时,出现相同的错误,但是如果我使用连字符( ionic -v
),我会得到该版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.