vue-element-admin在npm i 获取依赖报错怎么解决
获取完代码,npm i 报错
修复
1、去掉package.json下的 "tui-editor:"1.3.3""
2、删除src\components下的MarkdownEditor文件夹
3、删除src\view\components-demo下的markdown.vue
4、删除src\router\modules 下的components.js {path:‘markdown,’}路由
5、npm i 或者yarn install就可以了
如果接下来报以下关于core-js的错
These dependencies were not found:
* core-js/modules/es.array.push.js in ./node_modules/@babel/runtime/helpers/objectSpread2.js, ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-pluvue?vue&type=script&lang=js& and 9 others
* core-js/modules/es.error.cause.js in ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js, ./src/utils/request.js and 2 others
* core-js/modules/es.object.proto.js in ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js
* core-js/modules/es.regexp.dot-all.js in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_moduland 1 other
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.js core-js/modules/es.re
则如下修复:
删除node_modules中的3个文件夹:
core-js
core-js-compat
core-util-js
之后,再执行
npm i core-js --save就可以了。