Skip to content

'NODE_ENV' is not recognized as an internal or external command, operable program or batch file. Windows #8

@nosizejosh

Description

@nosizejosh

the back-end will not run on Windows, after following all the steps due to the error

'NODE_ENV' is not recognized as an internal or external command, operable program or batch file.

only way to get back-end to run is to edit the script source in package.json to

"scripts": {
"start": "npm run start:local",
"start:local": "SET NODE_ENV=local & nodemon index.js",
"start:dev": "SET NODE_ENV=development & nodemon index.js",
"start:prod": "SET NODE_ENV=production & node index.js",
"test": "jest --coverage",
"seed": "node scripts/seed.js",
"update-permissions": "node scripts/update-permissions.js",
"precommit": "lint-staged",
"lint": "eslint --fix **/*.js ./"
},

as explained here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions