VUE CLI3.0 Create demo 编译失败
VUE CLI3.0 Create demo Failed to compile with
enter image description here
enter image description here
INFO Starting development server...
95% emitting CopyPlugin ERROR Failed to compile with 1 errors12:29:34
error in ./src/router.js
Module parse failed: Unexpected token (17:13)
You may need an appropriate loader to handle this file type.
| // which is lazy-loaded when the route is visited.
| component: function component() {
> return import(
| /* webpackChunkName: "about" */
| './views/About.vue');
@ ./src/main.js 6:0-30 10:10-16
@ multi (webpack)-dev-server/client?http://192.168.75.129:8080/sockjs-node (webpack)/hot/dev-server.js ./src/main.js
{ [Error: EACCES: permission denied, open '/home/dollarkiller/demo/testdemo/node_modules/.stats-serve.json']
errno: -13,
code: 'EACCES',
syscall: 'open',
path:
'/home/dollarkiller/demo/testdemo/node_modules/.stats-serve.json' }
我的运行环境:
节点 v10.15.2
npm 6.6.0
vue 客户端 3.3.0
vue 创建 verdemo
Bable Router Vuex stylus eslint
报告错误
默认默认部署不报错
enter image description here enter image description here
INFO Starting development server...
95% emitting CopyPlugin ERROR Failed to compile with 1 errors12:29:34
error in ./src/router.js
Module parse failed: Unexpected token (17:13)
You may need an appropriate loader to handle this file type.
| // which is lazy-loaded when the route is visited.
| component: function component() {
> return import(
| /* webpackChunkName: "about" */
| './views/About.vue');
@ ./src/main.js 6:0-30 10:10-16
@ multi (webpack)-dev-server/client?http://192.168.75.129:8080/sockjs-node (webpack)/hot/dev-server.js ./src/main.js
{ [Error: EACCES: permission denied, open '/home/dollarkiller/demo/testdemo/node_modules/.stats-serve.json']
errno: -13,
code: 'EACCES',
syscall: 'open',
path:
'/home/dollarkiller/demo/testdemo/node_modules/.stats-serve.json' }
我的运行环境: 节点 v10.15.2 npm 6.6.0 vue 客户端 3.3.0
vue 创建 verdemo Bable Router Vuex stylus eslint 报告错误
默认默认部署不报错