vue.js 进行初始化遇到的关于core-js的错误@core-js/modules/es6.array.find-index (ERROR Failed to compile with 164

Posted 勾勾net

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vue.js 进行初始化遇到的关于core-js的错误@core-js/modules/es6.array.find-index (ERROR Failed to compile with 164 相关的知识,希望对你有一定的参考价值。

E:\\SourceCode\\VUE\\vue-element-admin-master>cnpm run dev

> vue-element-admin@4.3.0 dev E:\\SourceCode\\VUE\\vue-element-admin-master
> vue-cli-service serve

 INFO  Starting development server...
 10% building 2/2 modules 0 activei 「wds」: Project is running at http://localhost:9527/
i 「wds」: webpack output is served from /
i 「wds」: Content not from webpack is served from E:\\SourceCode\\VUE\\vue-element-admin-master\\public
i 「wds」: 404s will fallback to /index.html                                             98% after emitting CopyPlugin

 ERROR  Failed to compile with 164 errors                                                                     5:31:41 PM
These dependencies were not found:

* core-js/modules/es6.array.find-index in ./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.1.0@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.2@vue-loader/lib??vue-loader-options!./src/layout/components/TagsView/ScrollPane.vue?vue&type=script&lang=js&, ./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.1.0@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.2@vue-loader/lib??vue-loader-options!./src/views/table/complex-table.vue?vue&type=script&lang=js&
* core-js/modules/es6.array.from in ./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.1.0@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.2@vue-loader/lib??vue-loader-options!./src/components/DndList/index.vue?vue&type=script&lang=js&, ./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.1.0@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.2@vue-loader/lib??vue-loader-options!./src/components/HeaderSearch/index.vue?vue&type=script&lang=js& and 5 others
* core-js/modules/es6.array.sort in ./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.1.0@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.2@vue-loader/lib??vue-loader-options!./src/views/table/complex-table.vue?vue&type=script&lang=js&
* core-js/modules/es6.function.name in ./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.1.0@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.2@vue-loader/lib??vue-loader-options!./src/components/Breadcrumb/index.vue?vue&type=script&lang=js&, ./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.1.0@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.2@vue-loader/lib??vue-loader-options!./src/components/DndList/index.vue?vue&type=script&lang=js& and 10 others
* core-js/modules/es6.number.constructor in ./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.1.0@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.2@vue-loader/lib??vue-loader-options!./src/components/BackToTop/index.vue?vue&type=script&lang=js&, ./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.1.0@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.2@vue-loader/lib??vue-loader-options!./src/components/Dropzone/index.vue?vue&type=script&lang=js& and 9 others
* core-js/modules/es6.object.keys in ./src/permission.js, ./src/main.js and 16 others

 

 

 

core-js版本太高

安装了淘宝镜像就可以

cnpm install core-js@2

 

以上是关于vue.js 进行初始化遇到的关于core-js的错误@core-js/modules/es6.array.find-index (ERROR Failed to compile with 164 的主要内容,如果未能解决你的问题,请参考以下文章

包含 Vue.js 后,图像宽度和高度始终为 0 [关闭]

vue-cli3/4与elementui使用

如何将 core-js 更新为 core-js@3 依赖项?

Vue.js源码解析-Vue初始化流程

我在vue.js命令中初始化webpack时就乱码了,麻烦哪位大神帮我看看,谢谢了

Vue.js开发环境搭建(安装过程遇到的问题)