npm install -g cordova windows 8错误

时间:2013-11-21 22:46:13

标签: node.js cordova npm

我正在尝试在Windows 8中安装cordova,但是却抛出了这个错误。 我正在以管理员身份运行cmd,文件“C:\ Program Files(x86)\ nodejs \ node.exe”我配置为以管理员身份执行。


    19 info trying registry request attempt 1 at 17:24:08
    20 http GET http://registry.npmjs.org/cordova
    21 info retry will retry, error on last attempt: Error: connect EACCES
    22 info trying registry request attempt 2 at 17:24:19
    23 http GET http://registry.npmjs.org/cordova
    24 info retry will retry, error on last attempt: Error: connect EACCES
    25 info trying registry request attempt 3 at 17:25:20
    26 http GET http://registry.npmjs.org/cordova
    27 silly lockFile de8d9fad-cordova cordova@
    28 silly lockFile de8d9fad-cordova cordova@
    29 error Error: connect EACCES
    29 error     at errnoException (net.js:901:11)
    29 error     at Object.afterConnect [as oncomplete] (net.js:892:19)
    29 error  { [Error: connect EACCES] code: 'EACCES', errno: 'EACCES', syscall: 'connect' }
    30 error Please try running this command again as root/Administrator.
    31 error System Windows_NT 6.2.9200
    32 error command "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "cordova"
    33 error cwd C:\
    34 error node -v v0.10.22
    35 error npm -v 1.3.14
    36 error syscall connect
    37 error code EACCES
    38 error errno EACCES
    39 error stack Error: connect EACCES
    39 error stack     at errnoException (net.js:901:11)
    39 error stack     at Object.afterConnect [as oncomplete] (net.js:892:19)
    40 verbose exit [ 1, true ]

提前致谢。

0 个答案:

没有答案