You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm install will not work on MS Windows 10. The system ins not able to set Environment Variable NODE_ENV
Please make swapi-graphql work with Windows 10.
Steps to Reproduce
Git clone Project to Windows
Open Windows Powershell in swapi-graphql directory
Run npm install
Error will occur:
> swapi-graphql@ build:lambda D:\z_git_jj\_graphql\swapi-graphql
> NODE_ENV=development netlify-lambda build handler
Der Befehl "NODE_ENV" ist entweder falsch geschrieben oder konnte nicht gefunden werden.
Translation: The Command "NODE_ENV" is either misspelled or could not be found.
Solution
npm install cross-env
Edit Line 40 in package.json"build:lambda" - Add cross-env before setting variable
Description
npm install
will not work on MS Windows 10. The system ins not able to set Environment VariableNODE_ENV
Please make swapi-graphql work with Windows 10.
Steps to Reproduce
swapi-graphql
directorynpm install
Error will occur:
Solution
npm install cross-env
package.json
"build:lambda"
- Add cross-env before setting variablenpm install
package.json:
Further Readings
Stackoverflow: How to set environment variables from within package.json
The text was updated successfully, but these errors were encountered: