vue报错笔记These dependencies were not found:* core-js/modules/es.....to install them, you can

Posted Curry&llll

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vue报错笔记These dependencies were not found:* core-js/modules/es.....to install them, you can相关的知识,希望对你有一定的参考价值。

提示:这里简述项目相关背景:


 

问题描述

提示:这里描述项目中遇到的问题:

vue项目启动报错:To 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.


原因分析:缺少core-js模块

删除node_modules,首先安装报错的core-js,然后再进行cnpm install,最后启动项目。


解决方案:

第一步: cnpm rm -rf node_modules

第二步:cnpm install --save core-js

第三步:cnpm install

最后:npm run dev

以上是关于vue报错笔记These dependencies were not found:* core-js/modules/es.....to install them, you can的主要内容,如果未能解决你的问题,请参考以下文章

vue报错Module parse failed: Unexpected token (8:27)File was processed with these loaders

vue报错Module parse failed: Unexpected token (8:27)File was processed with these loaders

vue-These relative modules were not found

These relative modules were not found:...{"sourceM ap":false} 报错解决

vue cli 创建 vue2 项目报错:ERESOLVE unable to resolve dependency tree

ERROR Failed to compile with 541 errors 11:27:44 These dependencies were not found: * core-js/mod