error vue-element-admin@4.2.1 dev: vue-cli-service serve
最近在使用 npm install -g cnpm --registry=https://registry.npm.taobao.org 后,遇到了这个问题,以防再次遇到记录一下解决方法。
1、删除项目下 node_modules
2、执行 npm install core-js@2
npm install core-js@2
3、再次执行 npm install -g cnpm --registry=https://registry.npm.taobao.org (淘宝镜像)
npm install -g cnpm --registry=https://registry.npm.taobao.org
4、npm run dev 或 cnpm run dev
到这里后,问题解决。
参考文章:https://blog.csdn.net/qq_39291919/article/details/108056712