错误:
error commander@9.0.0: The engine "node" is incompatible with this module. Expected version "^12.20.0 || >=14". Got "12.18.2"
error Found incompatible module.
解决: yarn config set ignore-engines true
原因:
我的node.js安装包是8.2版本的,支持vue-cli 3.0版本以上需要v8.9以上.
于是我去node.js官网下载了新版本,再次yarn就ok了.