core-js 报错 Module not found: Error: Can‘t resolve ‘core-js/modules/es6.symbol.js‘ in ‘D:\project\ca

yarn install 下载依赖

yarn dev 运行报错

core-js 报错 Module not found: Error: Can‘t resolve ‘core-js/modules/es6.symbol.js‘ in ‘D:\project\ca_第1张图片

 


ERROR in ./src/components/ToAuth/index.vue?vue&type=script&lang=js& (./node_modules/babel-loader/lib/index.js?cacheDirectory=true!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/components/ToAuth/index.vue?vue&type=script&lang=js&) 1:0-46
Module not found: Error: Can't resolve 'core-js/modules/es6.regexp.search.js' in 'D:\project\card-manage\src\components\ToAuth'
 @ ./src/components/ToAuth/index.vue?vue&type=script&lang=js& 1:0-191 1:207-210 1:212-400 1:212-400
 @ ./src/components/ToAuth/index.vue 2:0-57 3:0-52 3:0-52 10:2-8
 @ ./node_modules/babel-loader/lib/index.js?cacheDirectory=true!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/views/logFind/index1.vue?vue&type=script&lang=js& 8:0-55 16:4-10
 @ ./src/views/logFind/index1.vue?vue&type=script&lang=js& 1:0-192 1:208-211 1:213-402 1:213-402
 @ ./src/views/logFind/index1.vue 2:0-58 3:0-53 3:0-53 11:2-8
 @ ./src/router/index.js 11:19-55
 @ ./src/main.js 5:0-30 54:2-8

ERROR in ./src/views/logFind/index1.vue?vue&type=script&lang=js& (./node_modules/babel-loader/lib/index.js?cacheDirectory=true!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/views/logFind/index1.vue?vue&type=script&lang=js&) 4:0-45
Module not found: Error: Can't resolve 'core-js/modules/es6.regexp.split.js' in 'D:\project\card-manage\src\views\logFind'
 @ ./src/views/logFind/index1.vue?vue&type=script&lang=js& 1:0-192 1:208-211 1:213-402 1:213-402
 @ ./src/views/logFind/index1.vue 2:0-58 3:0-53 3:0-53 11:2-8
 @ ./src/router/index.js 11:19-55
 @ ./src/main.js 5:0-30 54:2-8

ERROR in ./src/views/logFind/index1.vue?vue&type=script&lang=js& (./node_modules/babel-loader/lib/index.js?cacheDirectory=true!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/views/logFind/index1.vue?vue&type=script&lang=js&) 5:0-47
Module not found: Error: Can't resolve 'core-js/modules/es7.array.includes.js' in 'D:\project\card-manage\src\views\logFind'
 @ ./src/views/logFind/index1.vue?vue&type=script&lang=js& 1:0-192 1:208-211 1:213-402 1:213-402
 @ ./src/views/logFind/index1.vue 2:0-58 3:0-53 3:0-53 11:2-8
 @ ./src/router/index.js 11:19-55
 @ ./src/main.js 5:0-30 54:2-8

ERROR in ./src/views/logFind/index1.vue?vue&type=script&lang=js& (./node_modules/babel-loader/lib/index.js?cacheDirectory=true!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/views/logFind/index1.vue?vue&type=script&lang=js&) 6:0-39
Module not found: Error: Can't resolve 'core-js/modules/es6.symbol.js' in 'D:\project\card-manage\src\views\logFind'
 @ ./src/views/logFind/index1.vue?vue&type=script&lang=js& 1:0-192 1:208-211 1:213-402 1:213-402
 @ ./src/views/logFind/index1.vue 2:0-58 3:0-53 3:0-53 11:2-8
 @ ./src/router/index.js 11:19-55
 @ ./src/main.js 5:0-30 54:2-8

ERROR in ./src/common/js/common.js 1:0-47
Module not found: Error: Can't resolve 'core-js/modules/es6.regexp.replace.js' in 'D:\project\card-manage\src\common\js'
 @ ./src/main.js 13:0-43 29:8-14

ERROR in ./src/router/index.js 1:0-45
Module not found: Error: Can't resolve 'core-js/modules/es6.regexp.match.js' in 'D:\project\card-manage\src\router'
 @ ./src/main.js 5:0-30 54:2-8

ERROR in ./src/store/global.js 1:0-45
Module not found: Error: Can't resolve 'core-js/modules/es6.regexp.split.js' in 'D:\project\card-manage\src\store'
 @ ./src/store/index.js 4:0-30 9:4-10
 @ ./src/main.js 8:0-28 55:2-7

7 errors have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.

输入命令npm ls core-js

core-js 报错 Module not found: Error: Can‘t resolve ‘core-js/modules/es6.symbol.js‘ in ‘D:\project\ca_第2张图片

 

UNMET DEPENDENCY [email protected]

npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
[email protected] D:\project\card-manage
+-- UNMET DEPENDENCY @sefon/[email protected]
| +-- UNMET OPTIONAL DEPENDENCY [email protected]
| | `-- UNMET OPTIONAL DEPENDENCY [email protected]
| `-- UNMET OPTIONAL DEPENDENCY [email protected]
+-- UNMET DEPENDENCY @simonwep/[email protected]
| `-- UNMET DEPENDENCY [email protected]
+-- UNMET DEPENDENCY [email protected]
| `-- UNMET DEPENDENCY [email protected]
`-- UNMET DEPENDENCY [email protected]
  `-- UNMET DEPENDENCY [email protected]
    `-- UNMET DEPENDENCY [email protected]

npm ERR! missing: @sefon/[email protected], required by [email protected]
npm ERR! missing: @simonwep/[email protected], required by [email protected]
npm ERR! missing: [email protected], required by [email protected]
npm ERR! missing: [email protected], required by [email protected]
npm ERR! missing: [email protected], required by @simonwep/[email protected]
npm ERR! missing: [email protected], required by [email protected]
npm ERR! missing: [email protected], required by [email protected]
npm ERR! missing: [email protected], required by [email protected]

单独下载core-js 

输入命令:

 cnpm install core-js@2

运行: yarn dev

运行成功

你可能感兴趣的:(javascript,es6,npm)