npm 强制安装

一、清除缓存

npm cache clean --force

 

二、设置镜像源(可选)

npm set registry http://npm.xxxx.com/

 

三、install 安装

npm install --legacy-peer-deps --ignore-scripts --unsafe-perm=true --allow-root

 

 

ok ~

posted @ 2026-08-19 09:38  BillyYang  阅读(2)  评论(0)    收藏  举报