npm install 执行时报错

提问  收藏
1 / 227

ERROR Failed to compile with 1 errors friendly-errors 15:45:31

ERROR in ./.nuxt/client.js friendly-errors 15:45:31

Module build failed (from ./node_modules/babel-loader/lib/index.js): friendly-errors 15:45:31 Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main resolved in /Users/cb/go/mbbs/site/node_modules/@babel/helper-compilation-targets/package.json at applyExports (internal/modules/cjs/loader.js:491:9) at resolveExports (internal/modules/cjs/loader.js:507:23) at Function.Module._findPath (internal/modules/cjs/loader.js:635:31) at Function.Module._resolveFilename (internal/modules/cjs/loader.js:953:27) at Function.Module._load (internal/modules/cjs/loader.js:842:27) at Module.require (internal/modules/cjs/loader.js:1026:19) at require (internal/modules/cjs/helpers.js:72:18) at Object. (/Users/cb/go/mbbs/site/node_modules/@babel/preset-env/lib/debug.js:8:33) at Module._compile (internal/modules/cjs/loader.js:1138:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10) at Module.load (internal/modules/cjs/loader.js:986:32) at Function.Module._load (internal/modules/cjs/loader.js:879:14) at Module.require (internal/modules/cjs/loader.js:1026:19) at require (internal/modules/cjs/helpers.js:72:18) at Object. (/Users/cb/go/mbbs/site/node_modules/@babel/preset-env/lib/index.js:11:14) at Module._compile (internal/modules/cjs/loader.js:1138:30) friendly-errors 15:45:31 @ multi eventsource-polyfill webpack-hot-middleware/client?reload=true&timeout=30000&ansiColors=&overlayStyles=&name=client&path=/__webpack_hmr/client ./.nuxt/client.js