Cla*_*cka 6 node.js npm npm-install
当我尝试从 npm 安装软件包时,出现获取失败错误。我设置了 npm 的配置: - 将 strict-ssl 设置为 false - 使用https://registry.npmjs.org/设置注册表 - 设置代理和 https-proxy
当我搜索软件包时,注册表的 get 方法工作正常,但是当我尝试安装时,出现错误
在使用最新版本的 Node 8.9.1 和 npm 5.5.1 升级节点后,我收到此错误。
我尝试了很多方法来修复它: - 删除内容并使用代理、strict-ssl 重新配置我的 .npmrc 设置 - 降级到我的最新版本,即节点 4 版本,但它不起作用......
这是我得到的错误:
信息如果以 ok
verbose cli [ 'C:\Applications\Nodejs\node.exe',
verbose cli
'C:\Users\xxxxxxxxx\AppData\Roaming\npm\node_modules\npm\bin\npm-cli. js',
verbose cli 'install',
verbose cli 'create-react-class',
verbose cli '--save',
verbose cli '--verbose' ]
使用 npm@5.5.1 的信息
使用 node@v4.7.0
verbose 的信息npm-session 3edca0dd78623f79
愚蠢的安装 loadCurrentTree
愚蠢的安装 readLocalPackageData
愚蠢的 fetchPackageMetaData 错误 create-react-class@latest 请求https://registry.npmjs.org/create-react-class失败,原因:写入 EPROTO 101057795:error:140770FC: SSL 例程:SSL23_GET_SERVER_HELLO:未知协议:openssl\ssl\s23_clnt.c:794:
详细类型系统
详细堆栈 FetchError:请求https://registry.npmjs.org/create-react-class失败,原因:写入 EPROTO 101057795:错误:140770FC:SSL 例程:SSL23_GET_SERVER_HELLO:未知协议:openssl\ssl\s23_clnt.c:794: ClientRequest 处的
详细堆栈详细堆栈。
(C:\Users\xxxxxxxxx\AppData\Roaming\npm\node_modules\npm\node_modules\pacote\node_modules\make-fetch-happen\node_modules\node-fetch-npm\src\index.js:68:14) 详细
堆栈在 emitOne (events.js:77:13)
处的详细堆栈 ClientRequest.emit (events.js:169:7)
在 onerror 处的详细堆栈
(C:\Users\xxxxxxxxx\AppData\Roaming\npm\node_modules\npm\node_modules\ pacote\node_modules\make-fetch-happen\node_modules\https-proxy-agent\node_modules\agent-base\index.js:106:9)
回调错误处的详细堆栈 (C:\Users\xxxxxxxxx\AppData\Roaming\npm\ node_modules\npm\node_modules\pacote\node_modules\make-fetch-happen\node_modules\https-proxy-agent\node_modules\agent-base\index.js:126:5) 详细
cwd D:\Users\xxxxxxxxx\Documents\PycharmWorkspace \
详细 Windows_NT 6.1.7601
详细 argv "C:\Applications\Nodejs\node.exe" "C:\Users\xxxxxxxxx\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "安装" " create-react-class" "--save" "--verbose"
详细节点 v4.7.0
详细 npm v5.5.1
错误代码 EPROTO
错误 errno EPROTO
错误请求https://registry.npmjs.org/create-react-class失败,原因:写入EPROTO 101057795:错误:140770FC:SSL例程:SSL23_GET_SERVER_HELLO:未知协议:openssl \ ssl \ s23_clnt.c:794:
详细退出[1,true]
Cla*_*cka -7
我通过在这篇文章《如何从 Windows 中完全删除 node.js》之后从我的计算机中完全删除 node.js 和 npm 来解决这个问题