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

Deployment problem! please help #6

Open
rajeevkrS opened this issue Sep 10, 2024 · 1 comment
Open

Deployment problem! please help #6

rajeevkrS opened this issue Sep 10, 2024 · 1 comment

Comments

@rajeevkrS
Copy link

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

used chat gpt and implemented this but still not working.. only backend "API is working" renders

npm install cross-env --save-dev

{
"scripts": {
"dev": "cross-env NODE_ENV=development nodemon backend/server.js",
"start": "cross-env NODE_ENV=production node backend/server.js",
"build": "npm install && npm install --prefix frontend && npm run build --prefix frontend"
}
}

After making this change, you can run your app again using:

npm start

@VatsalJain2004
Copy link

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

used chat gpt and implemented this but still not working.. only backend "API is working" renders

npm install cross-env --save-dev

{ "scripts": { "dev": "cross-env NODE_ENV=development nodemon backend/server.js", "start": "cross-env NODE_ENV=production node backend/server.js", "build": "npm install && npm install --prefix frontend && npm run build --prefix frontend" } }

After making this change, you can run your app again using:

npm start

Hello man right now I am also facing a similar problem if you are reading this comment plz plz reply to me..

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