按照网站内的教程安装,在mac系统下终端内出现以下错误,求大家帮帮解决
MacdeMacBook-Pro:Desktop Mac$ sudo npm install –g cordovanpm 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
|