core-js/modules/es.error.cause.js 报错

This dependency was not found:
 
* core-js/modules/es.error.cause.js in ./node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js, ./src/directive/permission/hasPermi.js and 5 others
 
To install it, you can run: npm install --save core-js/modules/es.error.cause.js

  

解决方法:
1、先删除 node_modules 依赖
npm rm -rf node_modules

2、首先安装 报错的插件
npm install --save core-js
3、最后再 npm install 或者 yarn install
npm install
yarn install
4、最后 npm run dev 运行启动
npm run dev

posted @ 2022-08-11 10:05  张哲Zeo  阅读(424)  评论(0)    收藏  举报