Skip to content
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

Closed
chenkline opened this issue Jun 12, 2014 · 5 comments
Closed

cnpm -g i phonegap 全局安装错误 #39

chenkline opened this issue Jun 12, 2014 · 5 comments

Comments

@chenkline
Copy link

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

@chenkline
Copy link
Author

似乎是不支持带空格目录

@fengmk2
Copy link
Member

fengmk2 commented Jun 12, 2014

卡在 git clone 这里了

npm http 304 http://registry.npm.taobao.net/semver
npm verb etag semver from cache
|
/
|
\
npm verb addRemoteGit [ 'git://github.com/apache/cordova-lib.git',
npm verb addRemoteGit   '3623a84eb391f41c5a32ddc67eea89512c4ba654' ]
-
\

@fengmk2
Copy link
Member

fengmk2 commented Jun 12, 2014

@fengmk2
Copy link
Member

fengmk2 commented Jul 2, 2014

重复 #39

@fengmk2 fengmk2 closed this as completed Jul 2, 2014
@fengmk2
Copy link
Member

fengmk2 commented Jul 2, 2014

#40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants