0

I am trying to add a .env file with the text "SKIP_PREFLIGHT_CHECK=true" but I'm not exactly sure how to go about this. Can someone please help me out with this?

PS: I'm a complete beginner to React development, npm and everything else.

enter image description here

Arjun Ram
  • 369
  • 2
  • 18

1 Answers1

0

Your .env file contents is fine - but your file isn't actually named .env - you have file-extensions disabled so you can't see that it's real name is .env.txt. You need to remove the .txt part.

Change your explorer settings to file all file extensions and then remove it using F2.

Dai
  • 141,631
  • 28
  • 261
  • 374
  • How do I change my explorer settings? Can you please be more specific? Should I change my explorer settings in the text file, or in the project directory? – Arjun Ram Jun 26 '20 at 03:33
  • Start > Control Panel > File Explorer Options > View > Uncheck "Hide extensions for known file types" - or use a terminal window to rename the files. – Dai Jun 26 '20 at 04:08
  • Too circuitous. The other method was better. Thanks, anyhow! – Arjun Ram Jun 26 '20 at 04:14