更新时间:2023-02-22 15:18:48
尝试使用LTS版本而不是当前版本.现在,节点的LTS是10.16.0
,当前版本是12.6.0
.
Try to use LTS version not current version. Right now LTS of node is 10.16.0
and the current version is 12.6.0
.
由于稳定版本,LTS往往更稳定并且错误更少
LTS tend to be more stable and have less bug because is stable version
然后在完成安装后尝试运行
Then when you installed is done try to run
npm cache clean --force
然后删除package-lock.json
删除node_modules
文件夹
然后运行npm i