vue プロジェクトで npm run dev を実行するときのエラー (10% build 2/5 modules 3 active .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