首页 > 其他分享 >Error message "error:0308010C:digital envelope routines::unsupported"

Error message "error:0308010C:digital envelope routines::unsupported"

时间:2023-03-23 13:46:48浏览次数:47  
标签:0308010C vue cli service routines unsupported digital message

由于升级Nodejs版本造成的,一般创建项目时为16.7.0版本,然后安装或升级了更高版本,再进行run的时候,会提示。

Error message "error:0308010C:digital envelope routines::unsupported"

解决方法:

1. 降级nodejs的版本,到16.7.0

2. 在 package.json 中的scripts 中对应的命令中加入node的参数 

"scripts": {

    "serve": "node --openssl-legacy-provider node_modules/@vue/cli-service/bin/vue-cli-service.js serve",     "build": "vue-cli-service build --mode prod",     "test": "vue-cli-service build --mode test",     "lint": "vue-cli-service lint",     "start": "npm run serve"   },

标签:0308010C,vue,cli,service,routines,unsupported,digital,message
From: https://www.cnblogs.com/googlegis/p/17247157.html

相关文章