ioniccordovaphoneGap安装后报错command not found

xiaoxiao2021-02-27  961

最近在学ionic ,通过命令 sudo npm install -g ionic cordova ionic start MyIonicProject -bash: ionic: command not found 为此很是困惑,后来发现是路径问题 当前的ionic路径是/usr/local/Cellar/node/7.5.0/bin,在当前路径下可以用./ionic start MyIonicProject . 解决方法如下: sudo ln -s /usr/local/Cellar/node/7.5.0/bin/ionic ionic 由此ionic命令就可以全局使用了

转载请注明原文地址: https://www.6miu.com/read-287.html

最新回复(0)