jeepay-ui npm install 报错问题

未结 分享 2 1879
六月
六月 2021-06-11 17:50:04
悬赏: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
回帖
  • 2021-09-09 11:00:55
    解决 jenkins 打包vue项目慢的问题: 提示: EACCES: permission denied, mkdir '/root/.jenkins/workspace/t_jeepay-ui/jeepay-ui-merchant/node_modules/cwebp-bin/vendor' 进入项目下执行: (清除缓存) $ npm cache verify $ npm cache clean --force
    0 回复
  • 2023-06-18 21:24:10
    问题:npm run serve 启动异常:Error: error:0308010C:digital envelope routines::unsupported 解决方法:确认是否使用nodejs 16版本,高于16版本会出现此问题
    0 回复
本周热议
本地打包报错 0

冀ICP备19034523号-6
Copyright © 2017 - 2025 Jeequan. All Rights Reserved. 计全科技 版权所有