ERROR Failed to compile with 2 errors This dependency was not found: *
core-js/modules/es.error.cause.js in
./node_modules/_@[email protected]@@babel/runtime/helpers/esm/nonIterableSpread.js,
./node_modules/[email protected]@cache-loader/dist/cjs.js??ref--13-0!./node_modules/[email protected]@babel-loader/lib!./node_modules/[email protected]@cache-loader/dist/cjs.js??ref--1-0!./node_modules/[email protected]@vue-loader/dist??ref--1-1!./src/views/setting/user/save.vue?vue&type=script&lang=js
To install it, you can run: npm install --save core-js/modules/es.error.cause.js
解决方法:
第一步:删除node_modules
sudo rm -rf node_modules
第二步: 独立安装(core-js)
sudo cnpm install --save core-js
第三步:安装其他依赖
sudo cnpm i
第四步:运行
npm run serve