FORUM— 返回社区
№ 0009

jeepay-ui npm install 报错问题

六月
· 2195 VIEWS
问题1:npm install 失败报错: errno -4048 syscall unlink

解决方案:
1.npm使用淘宝镜像地址:
npm install --registry=https://registry.npm.taobao.org
2.删除本地npm缓存:
文件地址:C:\Users{用户名}\AppData\Roaming
文件:npm-cache和npm文件进行删除

问题2:run `npm fund` for details
报错:
found 126 vulnerabilities (4 low, 114 moderate, 8 high)
run `npm audit fix` to fix them, or `npm audit` for details
解决方案:
npm fund
npm run serve

问题3:

解决方案:
1:npm config set strict-ssl false:
2:npm install -g supervisor
再执行install

问题4:

解决方案:安装新版visual studio,并引入相关的c++桌面开发
地址: https://github.com/nodejs/node-gyp#on-windows


我这里一起勾选了python开发以及node.js,如果单独勾选桌面开发依旧不行的话可以尝试按我这里一起勾选,并不会覆盖你的本地已安装版本
静静等待安装,安装完成之后再重新打开目录,npm install
参考文档:https://blog.csdn.net/jyang_1524/article/details/124324089

问题5:
(问题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

COMMENTS— 讨论区
2 ENTRIES
  • 01
    terrfly· 2021-09-09 11:00
    解决 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

  • 02
    六月· 2023-06-18 21:24
    问题:npm run serve 启动异常:Error: error:0308010C:digital envelope routines::unsupported
    解决方法:确认是否使用nodejs 16版本,高于16版本会出现此问题