我使用nvm来管理我的节点版本。我有一个项目,用户节点6.10.2。对于像npm install -g gulp这样简单的东西,我得到了以下错误:
write EPROTO 101057795:error:1408D07B:SSL routines:ssl3_get_key_exchange:bad signature:openssl\ssl\s3_clnt.c:20我已经将strict-ssl false添加到我的配置中,但这并没有帮助。我没有在代理服务器后面,我已经在我的公司防火墙,家庭网络,甚至我的移动热点后面尝试过了,所有这些都是同样的错误。我改为使用http://而不是https://,使用npm config set registry http://registry.npmjs.org/可以让我跳过gulp错误,但对于其他包,错误会返回(可能是因为它们来自不同的注册表)。不管怎样,使用http://会让我担心安全性。
我在节点6.10.2和7.4.0上得到了相同的结果。如果我跳到最新的节点,12.18.0错误不会发生,但我正在处理的项目不支持节点的新版本。不知所措,不知道还能尝试什么。
这是npm-debug.log文件的错误部分:
103 verbose stack Error: write EPROTO 101057795:error:1408D07B:SSL routines:ssl3_get_key_exchange:bad signature:openssl\ssl\s3_clnt.c:2032:
103 verbose stack
103 verbose stack at exports._errnoException (util.js:1018:11)
103 verbose stack at WriteWrap.afterWrite (net.js:804:14)
104 verbose cwd C:\code\extraspace.web.pointofsale
105 error Windows_NT 10.0.18363
106 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "gulp"
107 error node v6.10.2
108 error npm v3.10.10
109 error code EPROTO
110 error errno EPROTO
111 error syscall write
112 error write EPROTO 101057795:error:1408D07B:SSL routines:ssl3_get_key_exchange:bad signature:openssl\ssl\s3_clnt.c:2032:发布于 2021-12-03 07:15:50
Nodejs免责声明:我对没有太多经验,我给出的答案是我自己对这个问题的研究,希望能在某种程度上对你有所帮助。
参考资料:write-eproto-101057795...或common-proxy-and-networking-p...
首先检查Nodejs是否安装正确
- Open Command Prompt (Windows) or Terminal (Mac) or Bash (Linux)
- Execute this command: node -v (The output should be "6.10.2")
- Execute this command: npm -v (The output should be "(some-version)")试试这个:
- Open Command Prompt (Windows) or Terminal (Mac) or Bash (Linux)
- Go to the "app" folder (Located on the same folder of this file)
- Execute this command (*): npm install --development
- Execute this command: npm start --development如果以上所有操作都失败了,请检查下面的列表。
发布于 2022-02-28 10:06:25
从您的错误日志
...
...
107 error node v6.10.2
108 error npm v3.10.10
...
...您的npm和nodejs版本非常旧。尝试升级npm和nodejs版本。
也可以试试
//disable strict ssl checking
npm config set strict-ssl false
//if you're using different npm registry try official registry for debug
npm config set registry https://registry.npmjs.org/https://stackoverflow.com/questions/62178866
复制相似问题