File not found
See original GitHub issueThis is a bug in the latest version of this package. Works fine with 8.0.2, but not with 9.0.1.
I have a Create React App and run this command:
"build:test": "env-cmd .env.test yarn run build",
I get the following error:
spawn .env.test ENOENT
/bin/sh: line 1: 58663 Hangup: 1 env-cmd .env.test yarn run build
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:5 (3 by maintainers)
Top Results From Across the Web
File Not Found Error In Preview but the File IS There
I get an error that says "File Not Found Error It may have been moved, edited, or deleted" ERR_FILE_NOT_FOUND I'm getting this in...
Read more >Random "File not found" error on Project:Support desk
The problem that I'm having is that randomly some links are not working properly ... If you click on a wrong link it...
Read more >“File Not Found Check The File Name And Try Again” Error In ...
Solution: Through Windows Security Settings · Step 1: Click the Start button on your desktop and select Settings from the context menu, located ......
Read more >How to Repair Error 15 File Not Found Issue in Windows | Stellar
Summary: 'Error 15: file not found' error appears due to hard drive corruption, malware attack, or when a certain file from the operating ......
Read more >How to Fix File Not Found Windows 10 Error
How to Resolve File Not Found Windows 10 Error · Select Start > Settings; Choose Update & security > Windows Defender. · Hit...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

The options have changed in v9. You need to pass the
-fflag if you want to provide a custom env file path (by default with no-fflag it looks for./.envfile). I will update the Readme to make that more apparent. Thanks for bringing this up. It was not a change I made lightly, but was necessary to better future proof the lib.Closing due to inactive/no response from original poster.