-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cnpm -g i phonegap 全局安装错误 #39
Comments
似乎是不支持带空格目录 |
卡在 git clone 这里了
|
重复 #39 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
C:\Users\issuser>cnpm -g i phonegap
npm ERR! Error: EPERM, mkdir 'C:\Program Files (x86)\nodejs\node_modules\phonega
p'
npm ERR! { [Error: EPERM, mkdir 'C:\Program Files (x86)\nodejs\node_modules\pho
negap']
npm ERR! errno: 50,
npm ERR! code: 'EPERM',
npm ERR! path: 'C:\Program Files (x86)\nodejs\node_modules\phonegap',
npm ERR! fstream_type: 'Directory',
npm ERR! fstream_path: 'C:\Program Files (x86)\nodejs\node_modules\phonega
p',
npm ERR! fstream_class: 'DirWriter',
npm ERR! fstream_stack:
npm ERR! [ 'C:\Users\issuser\AppData\Roaming\npm\node_modules\cnpm\no
de_modules\npm\node_modules\fstream\lib\dir-writer.js:36:23',
npm ERR! 'C:\Users\issuser\AppData\Roaming\npm\node_modules\cnpm\no
de_modules\npm\node_modules\mkdirp\index.js:37:53',
npm ERR! 'Object.oncomplete (fs.js:107:15)' ] }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "node" "C:\Users\issuser\AppData\Roaming\npm\node_modules
\cnpm\node_modules\npm\bin\npm-cli.js" "--userconfig=C:\Users\issuser.c
npmrc" "--disturl=http://npm.taobao.org/dist" "--cache=C:\Users\issuser.npm
.cache_cnpm" "--registry=http://registry.npm.taobao.org" "-g" "i" "phonegap"
npm ERR! cwd C:\Users\issuser
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.15
npm ERR! path C:\Program Files (x86)\nodejs\node_modules\phonegap
npm ERR! fstream_path C:\Program Files (x86)\nodejs\node_modules\phonegap
npm ERR! fstream_type Directory
npm ERR! fstream_class DirWriter
npm ERR! code EPERM
npm ERR! errno 50
npm ERR! stack Error: EPERM, mkdir 'C:\Program Files (x86)\nodejs\node_modules\p
honegap'
npm ERR! fstream_stack C:\Users\issuser\AppData\Roaming\npm\node_modules\cnpm\no
de_modules\npm\node_modules\fstream\lib\dir-writer.js:36:23
npm ERR! fstream_stack C:\Users\issuser\AppData\Roaming\npm\node_modules\cnpm\no
de_modules\npm\node_modules\mkdirp\index.js:37:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\issuser\npm-debug.log
npm ERR! not ok code 0
The text was updated successfully, but these errors were encountered: