问答详情
源自:2-1 vue-loader+webpack项目配置

求解!!!!!

PS C:\Users\ss\Desktop\Vue.js-Tudo> npm run Build
npm ERR! file C:\Users\ss\Desktop\Vue.js-Tudo\package.json
npm ERR! code EJSONPARSE
npm ERR! Failed to parse json
npm ERR! Unexpected string in JSON at position 169 while parsing '{
npm ERR!   "name": "vue.js-tudo",
npm ERR!   "version": '
npm ERR! File: C:\Users\ss\Desktop\Vue.js-Tudo\package.json
npm 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.parse

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\ss\AppData\Roaming\npm-cache\_logs\2018-03-25T13_47_51_099Z-debug.log



提问者:Gui51519 2018-03-25 21:49

个回答

  • flyingjoer
    2018-03-26 07:49:10
    已采纳

    json文件中不能有单引号,所有的引号都是双引号,注意语法