-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Cannot GET / on starting the application #52
Comments
Hello sir, I have faced the same issue. But you can see that error shows that "NODE_ENV" is not recognized. |
@Shanmukhsvstp For me it started on localhost:8000 but nothing is showed now, it shows site can't be reached. Pls help |
@kkartik07 , |
Okay sir thanks for reply I will try it.
…On Wed, 8 Nov, 2023, 11:56 pm Yasin, ***@***.***> wrote:
nod
Hello sir, I have faced the same issue. But you can see that error shows
that "NODE_ENV" is not recognized. So, you can install it in that project
by following command - "npm install -g win-node-env". Then try "yarn run
dev". That worked for me and also should fix your issue
and i try on nodejs version 16. and it's works :)
—
Reply to this email directly, view it on GitHub
<#52 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVLFJMYBOEFVWVTNWLTFSJDYDPFE5AVCNFSM6AAAAAAXTHJSVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBSGQZDOMRYHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@Shanmukhsvstp had you have a solution? |
I was able to run the app locally by making these changes:
Hope this helps🙂 |
Thanks, I'll try it.
…On Fri, 24 May, 2024, 8:56 pm Afrin Nahar, ***@***.***> wrote:
I was able to run the app locally by making these changes:
1.
create a .env file on the root directory and add these variables:
PORT=8000
NODE_ENV=dev
2.
npm i dotenv
3.
on app.js
let env = require("dotenv"); env.config();
4.
change process.env.NODE_ENV === "dev" on app.js & server_url=
http://localhost:8000
5.
Run yarn build manually for creating static build file
6.
Then run yarn dev
Hope this helps🙂
—
Reply to this email directly, view it on GitHub
<#52 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVLFJM5HDSSVYSCQ3B6S25DZD5L3DAVCNFSM6AAAAAAXTHJSVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRZHAYTIOJZGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I have started the application using yarn install and yarn dev (also tried npm start and npm run dev). On accessing localhost on the browser it shows Cannot GET / (attached the screenshot of terminal and browser). How can this be fixed? Thank you!
The text was updated successfully, but these errors were encountered: