简体   繁体   English

npm 在 windows 10 中运行构建

[英]npm run build in windows 10

This is the error I got when I execute the command in windows 10这是我在windows 10中执行命令时得到的错误

 npm ERR! code EJSONPARSE
        npm ERR! file C:\Users\Dana\Desktop\Bootstrap_Coursera\Bootstrap4\conFusion\package.json
        npm ERR! JSON.parse Failed to parse json
        npm ERR! JSON.parse Unexpected token } in JSON at position 886 while parsing near '... npm 
        run usemin",
        npm ERR! JSON.parse   },
        npm ERR! JSON.parse   "author": "",
        npm ERR! JSON.parse  ...'
        npm ERR! JSON.parse Failed to parse package.json data.
        npm ERR! JSON.parse package.json must be actual JSON, not just JavaScript.

There's an excess comma after npm run usemin" (on the line with ... npm run usemin", ) in your package.json file.在您的package.json文件中的npm run usemin" (与... npm run usemin",行)之后有一个多余的逗号。 You have to remove this comma, since JSON does not allow trailing commas, causing a JSON parsing error.你必须删除这个逗号,因为 JSON 不允许尾随逗号,导致 JSON 解析错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM