简体   繁体   中英

npm run build in windows 10

This is the error I got when I execute the command in 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. You have to remove this comma, since JSON does not allow trailing commas, causing a JSON parsing error.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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