INFO Starting development server...
10% building 2/2 modules 0 active ERROR Error: Cannot find module 'core-js/modules/es6.regexp.constructor'
Error: Cannot find module 'core-js/modules/es6.regexp.constructor'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/home/lumos/workspace/coding/console-cda/mock/index.js:9:1)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Module._compile (/home/lumos/workspace/coding/console-cda/node_modules/pirates/lib/index.js:117:24)
at Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Object.newLoader [as .js] (/home/lumos/workspace/coding/console-cda/node_modules/pirates/lib/index.js:121:7)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at registerRoutes (/home/lumos/workspace/coding/console-cda/mock/mock-server.js:10:30)
at Object.module.exports.app [as after] (/home/lumos/workspace/coding/console-cda/mock/mock-server.js:41:22)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: vue-cli-service serve --open
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev 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! /home/lumos/.npm/_logs/2023-09-27T03_37_39_633Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: npm run dev
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start 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! /home/lumos/.npm/_logs/2023-09-27T03_37_39_731Z-debug.log
INFO Starting development server... (/home/lumos/workspace/coding/console-cda/mock/index.js:9:1)
10% building 2/2 modules 0 active ERROR Error: Cannot find module 'core-js/modules/es6.regexp.constructor'
Error: Cannot find module 'core-js/modules/es6.regexp.constructor'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Module._compile (/home/lumos/workspace/coding/console-cda/node_modules/pirates/lib/index.js:117:24)
at Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Object.newLoader [as .js] (/home/lumos/workspace/coding/console-cda/node_modules/pirates/lib/index.js:121:7)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at registerRoutes (/home/lumos/workspace/coding/console-cda/mock/mock-server.js:10:30)
at Object.module.exports.app [as after] (/home/lumos/workspace/coding/console-cda/mock/mock-server.js:41:22)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev:
vue-cli-service serve --open
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev 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! /home/lumos/.npm/_logs/2023-09-27T03_37_39_633Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start:
npm run dev
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start 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! /home/lumos/.npm/_logs/2023-09-27T03_37_39_731Z-debug.log
同样的nodejs和npm版本,在20.9之前的版本没有出现过这类问题,我是从19年开始从15.x到当前20.9,我三台电脑里的两台升级之后,都出现了这个报错(已排查确实是nodejs环境导致,macos,deepin20.7以下版本没有问题)