sle*_*guy 7 openssl node.js npm npm-install
我正在使用 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
Run Code Online (Sandbox Code Playgroud)
我在我的配置中添加了 strict-ssl false ,但没有帮助。我不是在代理后面,我已经在我的公司防火墙、家庭网络甚至我的移动热点后面尝试过,但都出现了同样的错误。我改为使用 http:// 而不是 https:// usingnpm 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:
Run Code Online (Sandbox Code Playgroud)
小智 1
免责声明:对 Nodejs 没有那么丰富的经验,我给出的答案是我自己对这个问题的研究,希望能在某种程度上帮助你。
\n参考文献:\n write-eproto-101057795...或\n common-proxy-and-networking-p...
\n首先检查Nodejs是否正确安装
\n- Open Command Prompt (Windows) or Terminal (Mac) or Bash (Linux)\n- Execute this command: node -v (The output should be "6.10.2")\n- Execute this command: npm -v (The output should be "(some-version)")\nRun Code Online (Sandbox Code Playgroud)\n尝试这个:
\n- Open Command Prompt (Windows) or Terminal (Mac) or Bash (Linux)\n- Go to the "app" folder (Located on the same folder of this file)\n- Execute this command (*): npm install --development\n- Execute this command: npm start --development\nRun Code Online (Sandbox Code Playgroud)\n如果上述所有方法均失败,请检查下面的列表。
\n| 归档时间: |
|
| 查看次数: |
1008 次 |
| 最近记录: |