在本地启动mysql服务器然后再npn run serve运行项目时候,报了好多错,最后也没有出现页面,错误部分如下:
。。。。。。。。。。。。。。。。
33 active …VUE项目\16.VUE项目\资料\vue-cms\node_modules\core-js\modules\es.regexp.to-stri66% building 531/565 modules 34 active …VUE项目\资料\vue-cms\node_modules\core-js\modules\web.dom-collections.iterator66% building 531/566 modules 35 active …UE项目\16.VUE项目\资料\vue-cms\node_modules\core-js\internals\string-trim-forced.js
Replace Autoprefixer browsers option to Browserslist config.
Use browserslist key in package.json or .browserslistrc file.
Using browsers option can cause errors. Browserslist config
can be used for Babel, Autoprefixer, postcss-normalize and other tools.
If you really need to use option, rename it to overrideBrowserslist.
Learn more at:
https://github.com/browserslist/browserslist#readme
https://twitter.com/browserslist
66% building 532/566 modules 34 active …UE项目\16.VUE项目\资料\vue-cms\node_modules\core-js\internals\string-trim-forced.js
Replace Autoprefixer browsers option to Browserslist config.
Use browserslist key in package.json or .browserslistrc file.
Using browsers option can cause errors. Browserslist config
can be used for Babel, Autoprefixer, postcss-normalize and other tools.
If you really need to use option, rename it to overrideBrowserslist.
Learn more at:
https://github.com/browserslist/browserslist#readme
https://twitter.com/browserslist
66% building 533/566 modules 33 active …UE项目\16.VUE项目\资料\vue-cms\node_modules\core-js\internals\string-trim-forced.js
Replace Autoprefixer browsers option to Browserslist config.
Use browserslist key in package.json or .browserslistrc file.
Using browsers option can cause errors. Browserslist config
can be used for Babel, Autoprefixer, postcss-normalize and other tools.
If you really need to use option, rename it to overrideBrowserslist.
Learn more at:
https://github.com/browserslist/browserslist#readme
https://twitter.com/browserslist
66% building 534/566 modules 32 active …UE项目\16.VUE项目\资料\vue-cms\node_modules\core-js\internals\string-trim-forced.js
Replace Autoprefixer browsers option to Browserslist config.
Use browserslist key in package.json or .browserslistrc file.
Using browsers option can cause errors. Browserslist config
can be used for Babel, Autoprefixer, postcss-normalize and other tools.
If you really need to use option, rename it to overrideBrowserslist.
Learn more at:
https://github.com/browserslist/browserslist#readme
https://twitter.com/browserslist
66% building 535/566 modules 31 active …UE项目\16.VUE项目\资料\vue-cms\node_modules\core-js\internals\string-trim-forced.js
Replace Autoprefixer browsers option to Browserslist config.
Use browserslist key in package.json or .browserslistrc file.
Using browsers option can cause errors. Browserslist config
can be used for Babel, Autoprefixer, postcss-normalize and other tools.
If you really need to use option, rename it to overrideBrowserslist.
Learn more at:
https://github.com/browserslist/browserslist#readme
https://twitter.com/browserslist
66% building 536/566 modules 30 active …UE项目\16.VUE项目\资料\vue-cms\node_modules\core-js\internals\string-trim-forced.js
Replace Autoprefixer browsers option to Browserslist config.
Use browserslist key in package.json or .browserslistrc file.
Using browsers option can cause errors. Browserslist config
can be used for Babel, Autoprefixer, postcss-normalize and other tools.
If you really need to use option, rename it to overrideBrowserslist.
Learn more at:
https://github.com/browserslist/browserslist#readme
https://twitter.com/browserslist
66% building 537/566 modules 29 active …UE项目\16.VUE项目\资料\vue-cms\node_modules\core-js\internals\string-trim-forc66% building 537/567 modules 30 active …UE\16.VUE项目\16.VUE项目\资料\vue-cms\node_modules\core-js\internals\string-trim.js
Replace Autoprefixer browsers option to Browserslist config.
Use browserslist key in package.json or .browserslistrc file.
Using browsers option can cause errors. Browserslist config
can be used for Babel, Autoprefixer, postcss-normalize and other tools.
If you really need to use option, rename it to overrideBrowserslist.
Learn more at:
https://github.com/browserslist/browserslist#readme
https://twitter.com/browserslist
。。。。。。。。。。。。。。。。。
后来问同学,用了npm rebuild node-sass,npm update这两个命令,在命令行分别运行后,再重新运行npm run serve后就正常了,虽然上面错误还是有,但能跳出来页面了