fullstackreact / create-react-app-with-server

Moved to: https://github.com/fullstackreact/food-lookup-demo
12 stars 2 forks source link

npm start process exits abruptly #3

Open ahsanbagwan opened 8 years ago

ahsanbagwan commented 8 years ago

When I issue npm start I'm greeted with this error report:

calo@0.0.1 start C:\Users\Desktop\create-react-app-with-server nf start

[WARN] No ENV file found [OKAY] Trimming display Output to 61 Columns 11:36:12 AM web.1 | '.' is not recognized as an internal or external command, 11:36:12 AM web.1 | operable program or batch file. [DONE] Killing all processes with signal null 11:36:12 AM web.1 Exited Abnormally 11:36:12 AM api.1 Exited Abnormally

How do I get rid of this problem?

I'm on Windows 7 edition. Node version: 4.5.0

equicolor commented 8 years ago

You should use correct Windows path to 'react-scripts' in foreman's Procfile (remove ./ and replaces slashes by backslashes): web: node_modules\.bin\react-scripts start Also you need to edit second line and correctly set environment variable by 'SET PORT=3001' or using cross-env library: api: SET PORT=3001 ./node_modules/.bin/babel-node server.js or api: cross-env PORT=3001 ./node_modules/.bin/babel-node server.js