Ask coding questions

← Back to all posts
Cannot find or create .env file
themagicbean

I am trying to add a .env file to a repl. But I can't create a file with the name ".env" and I don't see an .env file. (Node.js - repl here: https://repl.it/join/avltnkgm-themagicbean)

Voters
BRmusicbot
bibihassan
guess420693423
AaditBansal
themagicbean
Comments
hotnewtop
Coder100

Works fine for me, maybe you did it wrong?
Read more

themagicbean

@Coder100 Lol, indeed it does. I guess I needed to refresh it like @SixBeeps said.

Coder100

lol probably @themagicbean

AaditBansal

This seems weird, but I had the same issue, and when I typed ".env" really quickly and pressed Enter, it worked.

DivyanshSareen

hey @themagicbean! I faced the same issue recently, you can try uploading a .env file from your device. It works for me :D

SixBeeps

Have you tried refreshing the Repl after creating it?