使用npm run build时报错:
$ npm run build > vue-devtools@6.5.0 build F:\vue-devtools > lerna run build (node:26872) ExperimentalWarning: queueMicrotask() is experimental. lerna notice cli v4.0.0 lerna info Executing command in 9 packages: "yarn run build" lerna ERR! yarn run build exited 1 in '@vue/devtools-api' lerna ERR! yarn run build stderr: 'yarn' �����ڲ����ⲿ���Ҳ���ǿ����еij��� ���������ļ��� lerna ERR! yarn run build exited 1 in '@vue/devtools-api' npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! vue-devtools@6.5.0 build: `lerna run build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the vue-devtools@6.5.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! D:\nodejs\node_cache\_logs\2023-02-15T09_21_07_567Z-debug.log
可能原因是: node 的版本不是最新的,而在项目引入的模块是最新的,node.js的版本低于模块的版本。
此处升级完node后就不报此错误了。