npm i 和 npm run serve 出现 npm audit fix

首先是我想要适配移动端的时候出现的一点问题,导致我运行的时候有错

运行npm run serve

npm i 和 npm run serve 出现 npm audit fix_第1张图片

 网上说删了node_modules

删除了node_modules后重新安装,安装报错

然后运行口令

npm audit fix
npm audit fix --force
npm audit

根据口令最后还是报错

npm i 和 npm run serve 出现 npm audit fix_第2张图片

 

运行以下口令可以解决

cnpm i -g windows-build-tools

你可能感兴趣的:(npm,vue.js,前端)