To install them, you can run: npm install --save core-js/modules/es.array.index-of core-js/modules/es.object.to-string
core-js/modules/es.regexp.exec core-js/modules/es.string.replace
yarn serve之后显示有别的包没有安装
先ctrl+c退出
使用
npm i core-js@3.6.4
然后在yarn serve就可以了