It works when i run npm start, but in heroku i cant do it works,
2017-06-28T17:18:54.167693+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2017-06-28T17:18:54.167918+00:00 app[web.1]: npm ERR! errno ENOENT
2017-06-28T17:18:54.168018+00:00 app[web.1]: npm ERR! syscall spawn
2017-06-28T17:18:54.168132+00:00 app[web.1]: npm ERR! [email protected] start: `react-scripts start`
2017-06-28T17:18:54.168203+00:00 app[web.1]: npm ERR! spawn ENOENT
2017-06-28T17:18:54.168300+00:00 app[web.1]: npm ERR!
2017-06-28T17:18:54.168387+00:00 app[web.1]: npm ERR! Failed at the [email protected] start script.
2017-06-28T17:18:54.169487+00:00 app[web.1]:
2017-06-28T17:18:54.168480+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2017-06-28T17:18:54.169649+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2017-06-28T17:18:54.169703+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2017-06-28T17_18_54_163Z-debug.log
my package.json, i saw on internet that maybe here is the problem
<!-- language: lang-js -->
{
"name": "juego-cartas-reactjs",
"version": "0.1.0",
"main":"src/index.js",
"dependencies": {
"font-awesome": "^4.7.0",
"lodash.shuffle": "^4.2.0",
"react": "^15.6.1",
"react-dom": "^15.6.1",
"react-flipcard": "^0.2.1"
},
"devDependencies": {
"react-scripts": "1.0.7"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
}
}
I dont know what else to do, if anyone know something about this, help
npm installon the server to make sure thatreact-scriptsexists? Looks like that's where it's failing.node_modulesfolder. Then runnpm startand you should get the same error. Then, runnpm installand thennpm startand it should start working again. Wherever the app is running, the dependencies need to be downloaded and installed.