error:0308010C:digital envelope routines::unsupported(Vue2报错)

原因:node.js版本过高,


error:0308010C:digital envelope routines::unsupported(Vue2报错)_第1张图片

 


解决方案,在终端输入以下命令


set NODE_OPTIONS=--openssl-legacy-provider

 然后再package.json里面添加一行


"dev_t": "set NODE_OPTIONS=\"--openssl-legacy-provider\" & npm run dev\n"

error:0308010C:digital envelope routines::unsupported(Vue2报错)_第2张图片

 


然后运行,输入npm run dev_t ,运行成功


error:0308010C:digital envelope routines::unsupported(Vue2报错)_第3张图片

 


这篇文章是借鉴别人的((1条消息) Error: error:0308010C:digital envelope routines::unsupported(Vue2项目报错)_潮汐未见潮落的博客-CSDN博客)


本人也是遇到问题然后解决了,

你可能感兴趣的:(vue)