解决vue项目中执行 npm run dev 时,报错(10% building 2/5 modules 3 active .node);版本问题,不替换node版本,轻松解决

报错:

原因:版本问题,这里为了不替换node版本,使用如下方法:

原始:

替换为:

 "dev": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
    "build:prod": "vue-cli-service build",
    "build:stage": "vue-cli-service build --mode staging",

猜你喜欢

转载自blog.csdn.net/WQGuang/article/details/131982721