question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

This 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:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

17reactions
toddbluhmcommented, May 8, 2019

The options have changed in v9. You need to pass the -f flag if you want to provide a custom env file path (by default with no -f flag it looks for ./.env file). 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.

1reaction
toddbluhmcommented, May 30, 2019

Closing due to inactive/no response from original poster.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found