-
Notifications
You must be signed in to change notification settings - Fork 792
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
'NODE_ENV' is not recognized as an internal or external command, operable program or batch file #283
Comments
Update: I don't know if this is the correct thing to do or not. In I.e. I replaced this:
with this:
And then run:
And nodemon starts:
When I go to page in browser, I get error:
I looked at step 6 in the README which says:
And ran:
Which returned:
|
Hi @oshihirii, This is a known issue that has been reported before but we are unable to reproduce it on our end. I'd like to investigate further. Would you kindly provide me with the terminal that you are running these commands in? |
i am using Windows Terminal (Preview) and Git Bash is my default profile (from Git). may I ask which issue you are referring to? this issue started with 1) the NODE_ENV issue, but then there were two other issues described: 2) the app doesn’t load (error in browser) 3) npm run seed doesn’t work (error in terminal). |
This is a very old thread, but I had this issue when starting. Simple solution is to remove the package.json:
env.json:
When you're ready to run in production you just change to |
Windows 10
Node v14.18.1
I've cloned connect-api-examples with:
I'm following the instructions here: for
connect-examples/v2/node_subscription
:https://github.com/square/connect-api-examples/tree/master/connect-examples/v2/node_subscription
I'm in the following location:
I've created a
.env
file with this content:and run:
and get error:
Perhaps it has something to do with issues discussed here?
https://stackoverflow.com/q/11928013
Also, FYI, there is no
config.json
file in the root directory of this example, as referred to here:https://github.com/square/connect-api-examples/tree/master/connect-examples/v2/node_subscription#project-organization
The text was updated successfully, but these errors were encountered: