Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm start process exits abruptly #3

Open
ahsanbagwan opened this issue Aug 26, 2016 · 1 comment
Open

npm start process exits abruptly #3

ahsanbagwan opened this issue Aug 26, 2016 · 1 comment

Comments

@ahsanbagwan
Copy link

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

[email protected] 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
Copy link

equicolor commented Sep 5, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants