PhoneGap中文网

标题: 安装cordova出问题 [打印本页]

作者: TitanTarget    时间: 2015-5-19 20:12
标题: 安装cordova出问题
按照网站内的教程安装,在mac系统下终端内出现以下错误,求大家帮帮解决

MacdeMacBook-Pro:Desktop Mac$ sudo npm install –g cordova
npm ERR! addLocal Could not install /Users/Mac/Desktop/–g
npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "–g" "cordova"
npm ERR! node v0.12.3
npm ERR! npm  v2.9.1
npm ERR! path /Users/Mac/Desktop/–g
npm ERR! code ENOENT
npm ERR! errno -2

npm ERR! enoent ENOENT, open '/Users/Mac/Desktop/–g'
npm ERR! enoent This is most likely not a problem with npm itself
npm 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
http://www.cnblogs.com/willian/p/3516613.html

看看这个帖子 希望对你有帮助
作者: TitanTarget    时间: 2015-5-19 21:29
admin 发表于 2015-5-19 21:17
http://www.cnblogs.com/willian/p/3516613.html

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

我现在是调用 sudo npm install –g cordova 命令出现这个错误,找了好多地方没找到解决方法




欢迎光临 PhoneGap中文网 (http://bbs.phonegap100.com/) Powered by Discuz! X3.2