关于已经安装好合适版本的nodejs和npm后,使用淘宝的路径依据npm install -g forever不成功的问题

Tom李 发布于 03/28 10:36
阅读 43
收藏 0

报文:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'install',
1 verbose cli   '-g',
1 verbose cli   'forever' ]
2 info using npm@4.1.2
3 info using node@v7.5.0
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 silly fetchPackageMetaData forever
8 silly fetchNamedPackageData forever
9 silly mapToRegistry name forever
10 silly mapToRegistry using default registry
11 silly mapToRegistry registry https://registry.npm.taobao.org/
12 silly mapToRegistry data Result {
12 silly mapToRegistry   raw: 'forever',
12 silly mapToRegistry   scope: null,
12 silly mapToRegistry   escapedName: 'forever',
12 silly mapToRegistry   name: 'forever',
12 silly mapToRegistry   rawSpec: '',
12 silly mapToRegistry   spec: 'latest',
12 silly mapToRegistry   type: 'tag' }
13 silly mapToRegistry uri https://registry.npm.taobao.org/forever
14 verbose request uri https://registry.npm.taobao.org/forever
15 verbose request no auth needed
16 info attempt registry request try #1 at 10:30:41 AM
17 verbose request id 89027200ed739629
18 http request GET https://registry.npm.taobao.org/forever
19 info retry will retry, error on last attempt: Error: tunneling socket could not be established, cause=getaddrinfo ENOTFOUND proxy.company.com proxy.company.com:8080
20 info attempt registry request try #2 at 10:31:31 AM
21 http request GET https://registry.npm.taobao.org/forever
22 info retry will retry, error on last attempt: Error: tunneling socket could not be established, cause=getaddrinfo ENOTFOUND proxy.company.com proxy.company.com:8080
23 info attempt registry request try #3 at 10:33:11 AM
24 http request GET https://registry.npm.taobao.org/forever
25 silly fetchPackageMetaData Error: tunneling socket could not be established, cause=getaddrinfo ENOTFOUND proxy.company.com proxy.company.com:8080
25 silly fetchPackageMetaData     at ClientRequest.onError (/usr/local/nodejs/lib/node_modules/npm/node_modules/request/node_modules/tunnel-agent/index.js:176:17)
25 silly fetchPackageMetaData     at Object.onceWrapper (events.js:291:19)
25 silly fetchPackageMetaData     at emitOne (events.js:96:13)
25 silly fetchPackageMetaData     at ClientRequest.emit (events.js:189:7)
25 silly fetchPackageMetaData     at Socket.socketErrorListener (_http_client.js:358:9)
25 silly fetchPackageMetaData     at emitOne (events.js:96:13)
25 silly fetchPackageMetaData     at Socket.emit (events.js:189:7)
25 silly fetchPackageMetaData     at connectErrorNT (net.js:1025:8)
25 silly fetchPackageMetaData     at _combinedTickCallback (internal/process/next_tick.js:74:11)
25 silly fetchPackageMetaData     at process._tickCallback (internal/process/next_tick.js:98:9)
25 silly fetchPackageMetaData  error for forever { Error: tunneling socket could not be established, cause=getaddrinfo ENOTFOUND proxy.company.com proxy.company.com:8080
25 silly fetchPackageMetaData     at ClientRequest.onError (/usr/local/nodejs/lib/node_modules/npm/node_modules/request/node_modules/tunnel-agent/index.js:176:17)
25 silly fetchPackageMetaData     at Object.onceWrapper (events.js:291:19)
25 silly fetchPackageMetaData     at emitOne (events.js:96:13)
25 silly fetchPackageMetaData     at ClientRequest.emit (events.js:189:7)
25 silly fetchPackageMetaData     at Socket.socketErrorListener (_http_client.js:358:9)
25 silly fetchPackageMetaData     at emitOne (events.js:96:13)
25 silly fetchPackageMetaData     at Socket.emit (events.js:189:7)
25 silly fetchPackageMetaData     at connectErrorNT (net.js:1025:8)
25 silly fetchPackageMetaData     at _combinedTickCallback (internal/process/next_tick.js:74:11)
25 silly fetchPackageMetaData     at process._tickCallback (internal/process/next_tick.js:98:9) code: 'ECONNRESET' }
26 silly rollbackFailedOptional Starting
27 verbose stack TypeError: Cannot read property 'path' of null
27 verbose stack     at Installer.rollbackFailedOptional (/usr/local/nodejs/lib/node_modules/npm/lib/install.js:511:29)
27 verbose stack     at Array.<anonymous> (/usr/local/nodejs/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js:15:8)
27 verbose stack     at LOOP (/usr/local/nodejs/lib/node_modules/npm/node_modules/slide/lib/chain.js:15:14)
27 verbose stack     at /usr/local/nodejs/lib/node_modules/npm/node_modules/slide/lib/chain.js:18:7
27 verbose stack     at /usr/local/nodejs/lib/node_modules/npm/lib/install.js:337:5
27 verbose stack     at Array.<anonymous> (/usr/local/nodejs/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js:15:8)
27 verbose stack     at LOOP (/usr/local/nodejs/lib/node_modules/npm/node_modules/slide/lib/chain.js:15:14)
27 verbose stack     at chain (/usr/local/nodejs/lib/node_modules/npm/node_modules/slide/lib/chain.js:20:5)
27 verbose stack     at /usr/local/nodejs/lib/node_modules/npm/lib/install.js:294:5
27 verbose stack     at /usr/local/nodejs/lib/node_modules/npm/node_modules/slide/lib/chain.js:16:22
28 verbose cwd /usr/local/nodejs
29 error Linux 3.16.0-77-generic
30 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "forever"
31 error node v7.5.0
32 error npm  v4.1.2
33 error Cannot read property 'path' of null
34 error If you need help, you may report this error at:
34 error     <https://github.com/npm/npm/issues>
35 verbose exit [ 1, true ]

加载中
0
T
Tom李

重新反复的安装,没有其他的办法

返回顶部
顶部