第一次用webpack,配置好后运行npm run dev结果报错了,在网上搜了很多资料都无法解决,求前辈们指点以下!不胜感激!!报错内容npm ERR! code EJSONPARSEnpm ERR! Failed to parse jsonnpm ERR! Unexpected token / while parsing '{npm ERR! "name": "vue-loader-demo",npm ERR! "versio'npm ERR! File: /Users/sylvia/Documents/FE/Practice/vue/vue-loader-demo/package.jsonnpm ERR! Failed to parse package.json data.npm ERR! package.json must be actual JSON, not just JavaScript.npm ERR! npm ERR! Tell the package author to fix their package.json file. JSON.parsenpm ERR! A complete log of this run can be found in:npm ERR! /Users/sylvia/.npm/_logs/2018-04-17T12_39_56_372Z-debug.logpackage.js{ "name": "vue-loader-demo", "version": "1.0.0", "description": "", "main": "main.js", "scripts": { "build": "webpack", "dev": "webpack-dev-server --devtool eval --progress --colors --hot" //意思是自动刷新屏幕 }, "author": "", "license": "ISC", "dependencies": { "webpack": "^4.5.0", "webpack-dev-server": "^3.1.3" }}文件结构|-index.html|-main.js |-App.vue |-package.json |-webpack.config.js
添加回答
举报
0/150
提交
取消


