TitanTarget 发表于 2015-5-19 20:12:15

安装cordova出问题

按照网站内的教程安装,在mac系统下终端内出现以下错误,求大家帮帮解决

MacdeMacBook-Pro:Desktop Mac$ sudo npm install –g cordovanpm ERR! addLocal Could not install /Users/Mac/Desktop/–gnpm ERR! Darwin 14.3.0npm ERR! argv "node" "/usr/local/bin/npm" "install" "–g" "cordova"npm ERR! node v0.12.3npm ERR! npmv2.9.1npm ERR! path /Users/Mac/Desktop/–gnpm ERR! code ENOENTnpm ERR! errno -2
npm ERR! enoent ENOENT, open '/Users/Mac/Desktop/–g'npm ERR! enoent This is most likely not a problem with npm itselfnpm ERR! enoent and is related to npm not being able to find a file.npm ERR! enoent
npm ERR! Please include the following file with any support request:npm ERR!   /Users/Mac/Desktop/npm-debug.log

admin 发表于 2015-5-19 21:17:30

http://www.cnblogs.com/willian/p/3516613.html

看看这个帖子 希望对你有帮助

TitanTarget 发表于 2015-5-19 21:29:02

admin 发表于 2015-5-19 21:17
http://www.cnblogs.com/willian/p/3516613.html

看看这个帖子 希望对你有帮助

我现在是调用 sudo npm install –g cordova 命令出现这个错误,找了好多地方没找到解决方法
页: [1]
查看完整版本: 安装cordova出问题