简体   繁体   中英

npm start command not working for my react app

I am trying to start my react app on localhost:3000 , but when I do npm start I get these error messages : 错误

I am sure it has to do with either npm or my package.json file, but I can't put my finger on exactly what is causing the problem.

This is my package.json file :

包.json

尝试在 package.json 中的build命令末尾添加逗号,然后运行 ​​npm start。

Absolutely your package.json file has syntax error, I proffer to you use a better code editor or use a better configuration for your sublime to show your syntax error.

In the end of line:10 you miss a comma , :

"build": "NODE_ENV=production browserify -t [ reactify --es6 ] app.js | uglifyjs > compiled.js", //<== this comma is missed

You are missing a comma on line 10 in your package.json . Add it and it should be fine.

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