我已经安装了最新版本的npm,使用该版本,我尝试使用以下命令安装vue-cli
npm install --global vue-cli但我现在遇到的问题如下:
npm ERR! code EPROTO
npm ERR! errno EPROTO
npm ERR! request to http://registry.npmjs.org/vue-cli failed, reason: write EPROTO 101057795:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:openssl\ssl\s23_clnt.c:827:
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\pd0ufv\AppData\Roaming\npm-cache\_logs\2018-02-02T17_02_16_113Z-debug.log我还将代理设置设置为
npm set http-proxy <proxy>
npm set https-proxy <proxy>
但也没起什么作用。我使用的是npm版本5.6.0。
发布于 2018-02-02 21:36:49
大多数情况下,此错误是因为您背后的防火墙实际上不支持SSL窥视,但是如果您使用它们的http传输,则会模仿它,因此相应地更改您的https-proxy定义:
npm set https-proxy http://example.com发布于 2020-02-23 09:36:25
使用以下步骤:
npm缓存干净
安装-g @vue/cli
https://stackoverflow.com/questions/48587671
复制相似问题