未找到Apache Cordova Command Mac El Capitan

时间:2016-06-16 00:17:44

标签: macos cordova osx-elcapitan

我刚尝试使用以下几次安装Cordova:

enter image description here

每当我在命令行中输入cordova时,都会显示command not found

我跑了

$ sudo find / -name cordova 2> /dev/null

返回:

/private/tmp/npm-6328-0567a7f3/registry.npmjs.org/cordova
/Users/userDirectory/.npm/cordova
/Users/userDirectory/.npm/registry.npmjs.org/cordova
/usr/local/bin/cordova
/usr/local/lib/node_modules/cordova
/usr/local/lib/node_modules/cordova/bin/cordova
/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova

我补充说:

/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin
/usr/local/share
/usr/local/share/npm
/usr/local/share/npm/lib/node_modules/
/usr/local/share/npm/bin
/.npm
.npm
/Users/userDirectory/.npm
/Users/userDirectory/.npm/registry.npmjs.org
/usr/local/bin
/usr/local/lib/node_modules
/usr/local/lib/node_modules/cordova
/usr/local/lib/node_modules/cordova/bin
/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src

etc/paths文件并仍然得到相同的错误。

请帮忙。

0 个答案:

没有答案