位置:- 正文

To install them, you can run: npm install --save core-js/modules/es.array.push.js

编辑:rootadmin
To install them, you can run: npm install --save core-js/modules/es.array.push.js

推荐整理分享To install them, you can run: npm install --save core-js/modules/es.array.push.js,希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:,内容如对您有帮助,希望把文章链接给更多的朋友!

在拉取代码后,下载依赖都没有报错,但是在启动项目的时候还是报错了。

报错如下:

These dependencies were not found:* core-js/modules/es.array.push.js in ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js, ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Breadcrumb/index.vue?vue&type=script&lang=js& and 3 others* core-js/modules/es.error.cause.js in ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js, ./src/utils/request.js and 1 other* core-js/modules/es.object.proto.js in ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.jsTo install them, you can run: npm install --save core-js/modules/es.array.push.js core-js/modules/es.error.cause.js core-js/modules/es.object.proto.js

按照网上搜索的解决方法

删除node-modules文件夹下的

core-jscore-js-compatcore-util-isTo install them, you can run: npm install --save core-js/modules/es.array.push.js

然后再次下载依赖并启动。

在这里出现了两种情况

第一种、还是报之前的错误。

第二种、报错找不到core-util-is。

下载了core-util-is的依赖,还是报错找不到 core-js-compat

下载 core-js-compat 的依赖,重启项目。

一般到这项目就可以启动成功了。如果如果到这你还是没启动成功,你可以尝试一下再次下载一下core-js的依赖。如下:

npm install core-js@3 --save

上面都是我遇到的,希望大家可以补充

对了网上还有说降低core-js版本、重启解决问题的。大家都可以试试,说不定你的就可以成功了。

本文链接地址:https://www.jiuchutong.com/zhishi/283759.html 转载请保留说明!
下一篇链接:https://www.jiuchutong.com/zhishi/283760.html
免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

鄂ICP备2023003026号

友情链接: 武汉网站建设 电脑维修 湖南楚通运网络