jeepay-ui npm install 报错问题
悬赏:0
收藏
问题1:npm install 失败报错: errno -4048 syscall unlink
解决方案:
1.npm使用淘宝镜像地址:[hr]
[pre]
npm install --registry=https://registry.npm.taobao.org
[/pre]
2.删除本地npm缓存:[hr]
文件地址:C:\Users{用户名}\AppData\Roaming
文件:npm-cache和npm文件进行删除
问题2:run `npm fund` for details
报错:
[pre]
found 126 vulnerabilities (4 low, 114 moderate, 8 high)
run `npm audit fix` to fix them, or `npm audit` for details
[/pre]
解决方案:
[pre]
npm fund
npm run serve
[/pre]
img[http://oss.xxpay.vip/img/11ce8b34-4bb7-4cb6-b67d-a6e5e033297d6753754772531069306.png] [hr]
问题3:[hr]
img[http://oss.xxpay.vip/img/3fa04225-7119-4dba-8b9d-a749bc39247e4189129345069893856.jpg] [hr]
解决方案:[pre]
1:npm config set strict-ssl false:
2:npm install -g supervisor
[/pre]
再执行install
问题4:[hr]
img[http://oss.xxpay.vip/img/6313a310-8839-4625-a39d-bc241d49fcc25975443112358017388.jpg]
解决方案:安装新版visual studio,并引入相关的c++桌面开发
地址: a(https://github.com/nodejs/node-gyp#on-windows)[https://github.com/nodejs/node-gyp#on-windows]
img[http://oss.xxpay.vip/img/bfa35cba-ead5-45d2-810f-82f232a0c5ed5878937301478348034.jpg]
img[http://oss.xxpay.vip/img/c4897dba-71cc-4010-bd63-f253d49bbc2f7405335941094790888.png]
我这里一起勾选了python开发以及node.js,如果单独勾选桌面开发依旧不行的话可以尝试按我这里一起勾选,并不会覆盖你的本地已安装版本
静静等待安装,安装完成之后再重新打开目录,npm install
参考文档:https://blog.csdn.net/jyang_1524/article/details/124324089
问题5:[hr]
(问题4 也可使用此方法)
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@8.2.0
npm ERR! gyp info using node@16.13.0 | win32 | x64
npm ERR! gyp info find Python using Python version 3.10.0 found at "C:\Python310\python.exe"
解决方案:(不太推荐)忽略包校验
yarn config set ignore-engines true
再执行npm install / yarn