一、问题描述
今天前端小伙伴反馈,有个项目编译失败,报错如下:
+ node -v
v16.17.0
+ npm -v
8.15.0
+ npm install -g yarn -registry=https://registry.npm.taobao.org
changed 1 package in 1m
+ yarn -v
1.22.21
+ yarn install
yarn install v1.22.21
[1/4] Resolving packages...
error Error: write EPROTO 139798789396352:error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1546:SSL alert number 80
at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:94:16)
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Build step 'Execute shell' marked build as failure
SSH: Current build result is [FAILURE], not going to run.
Finished: FAILURE
二、解决方案
上面报错看着就有些似懂非懂的感觉了。好家伙,貌似能读懂的就一个SSL…
大致搜索了一下,也尝试了几种方法:
(1)npm cache c