运行环境
问题详情、解决方案
在我使用yarn安装包的时候是正常安装的,可是在yarn serve的时候提示了如下错误
这个时候需要在vue.config.js中加入这个配置
transpileDependencies: [],
与devService平级的key
此时yarn serve已经可以正常跑了,但是在结束的时候会报错
Error: error:0308010C:digital envelope routines::unsupported
这个时候在你的终端里面打上如上命令:
export NODE_OPTIONS=--openssl-legacy-provider
如果是windows:
set NODE_OPTIONS=--openssl-legacy-provider
最后就运行成功啦!!!
参考地址:
https://www.fy253.com.cn/xuewuzhijing/7.html
https://blog.csdn.net/zjjxxh/article/details/127173968