我刚尝试使用以下几次安装Cordova:
每当我在命令行中输入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
文件并仍然得到相同的错误。
请帮忙。