使用NSolid安装本机模块时出错

时间:2016-08-17 20:21:14

标签: nsolid

我在Mac上本地安装了NSolid。在获取环境后,我运行npm install来安装我的项目的模块。在构建步骤中,2个本机模块都失败并出现相同的错误:

gyp ERR! configure error
gyp ERR! stack Error: 404 response downloading https://nodejs.org/dist/v4.4.7/nsolid-v4.4.7-headers.tar.gz
gyp ERR! stack     at Request.<anonymous> (/usr/local/nsolid/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:210:14)
gyp ERR! stack     at emitOne (events.js:82:20)
gyp ERR! stack     at Request.emit (events.js:169:7)
gyp ERR! stack     at Request.onRequestResponse (/usr/local/nsolid/lib/node_modules/npm/node_modules/request/request.js:977:10)
gyp ERR! stack     at emitOne (events.js:77:13)
gyp ERR! stack     at ClientRequest.emit (events.js:169:7)
gyp ERR! stack     at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:430:21)
gyp ERR! stack     at HTTPParser.parserOnHeadersComplete (_http_common.js:103:23)
gyp ERR! stack     at TLSSocket.socketOnData (_http_client.js:320:20)
gyp ERR! stack     at emitOne (events.js:77:13)

我没有运行代理,而且我能够很快到达http://nodejs.org。丢失的标题是否有解决办法?

1 个答案:

答案 0 :(得分:3)

正在使用nvm

$ unset NVM_NODEJS_ORG_MIRROR

应该做的伎俩。