To install it, you can run: npm install --save svg-baker-runtime/browser-symbol

运行vue项目npm run dev命令报错

报错信息如下:

This dependency was not found:

* svg-baker-runtime/browser-symbol in ./src/icons/svg/404.svg, ./src/icons/svg/wechat.svg and 70 others

To install it, you can run: npm install --save svg-baker-runtime/browser-symbol

错误提示:

To install it, you can run: npm install --save svg-baker-runtime/browser-symbol

解决:

npm install --save regenerator-runtime svg-baker-runtime vue-style-loader

使用npm下载慢会比较慢,因为npm存储包文件的服务器在国外,会被“墙”,建议切换成cnpm下载

执行命令:

npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install --save regenerator-runtime svg-baker-runtime vue-style-loader

猜你喜欢

转载自blog.csdn.net/weixin_43749805/article/details/128837660