当我尝试从 npm 安装软件包时,出现获取失败错误。我设置了 npm 的配置:
- 将 strict-ssl 设置为 false
- 设置注册表https://registry.npmjs.org/ https://registry.npmjs.org/- 设置代理和 https 代理
当我搜索软件包时,注册表的 get 方法工作正常,但是当我尝试安装时,出现错误
在使用最新版本的 Node 8.9.1 和 npm 5.5.1 升级节点后,我收到此错误。
我尝试了很多方法来修复它:
- 删除了内容并使用代理、严格 ssl 重新配置了我的 .npmrc 设置
- 降级到我的最新版本,即节点 4 版本,但它不起作用......
这是我得到的错误:
信息如果以 ok 结尾则有效
详细 cli [ 'C:\Applications\Nodejs\node.exe',
详细的 CLI
'C:\Users\xxxxxxxxx\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js',
详细的 cli“安装”,
详细 cli 'create-react-class',
详细 cli '--save',
详细 cli '--verbose']
信息使用[电子邮件受保护] /cdn-cgi/l/email-protection
信息使用[电子邮件受保护] /cdn-cgi/l/email-protection
详细 npm 会话 3edca0dd78623f79
愚蠢地安装loadCurrentTree
愚蠢的安装 readLocalPackageData
create-react-class@latest 请求出现愚蠢的 fetchPackageMetaData 错误https://registry.npmjs.org/create-react-class https://registry.npmjs.org/create-react-class失败,原因:写入EPROTO 101057795:错误:140770FC:SSL例程:SSL23_GET_SERVER_HELLO:未知协议:openssl \ ssl \ s23_clnt.c:794:
详细类型系统
详细堆栈 FetchError:请求https://registry.npmjs.org/create-react-class 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.html法律: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” “--保存” “--详细”
详细节点 v4.7.0
详细 npm v5.5.1
错误代码 EPROTO
错误 errno EPROTO
错误请求https://registry.npmjs.org/create-react-class https://registry.npmjs.org/create-react-class失败,原因:写入EPROTO 101057795:错误:140770FC:SSL例程:SSL23_GET_SERVER_HELLO:未知协议:openssl \ ssl \ s23_clnt.c:794:
详细退出 [ 1, true ]
我通过在这篇文章之后从我的计算机中完全删除node.js和npm来解决这个问题如何从 Windows 中完全删除 Node.js https://stackoverflow.com/questions/20711240/how-to-completely-remove-node-js-from-windows
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)