Skip to content

npm start process exits abruptly #3

Open
@ahsanbagwan

Description

@ahsanbagwan

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

Activity

equicolor

equicolor commented on Sep 5, 2016

@equicolor

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @ahsanbagwan@equicolor

        Issue actions

          npm start process exits abruptly · Issue #3 · fullstackreact/create-react-app-with-server