运行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存储包文件的服务器在国外,会被“墙”,建议切换成***pm下载
执行命令:
npm install -g ***pm --registry=https://registry.npm.taobao.org
***pm install --save regenerator-runtime svg-baker-runtime vue-style-loader