[npm install] error message
For various reasons, the official version 9 and earlier is no longer available, you need to download version 10 and later
Solution
- package.json, change the highlight.js version to 10.7.3
- then execute
npm install --registry=https://registry.npm.taobao.org
[npm run dev] error message
It is caused by the core-js version being too high
Solution
在babel.config.js中添加:
presets: [ [ "@vue/app", { useBuiltIns: "entry" } ] ]