dotenvx: dotenvx run doesn't run under powershell
dotenvx -V
1.22.0
This command doesn’t run in Powershell:
dotenvx run -f .env.testing -- node index.js
In pwsh:
PS D:\temp> dotenvx run -f .env.testing -- node index.js
[dotenvx@1.22.0] missing node file (D:\temp\node)
? add one with [echo "HELLO=World" > node] and re-run [dotenvx run -- ]
[dotenvx@1.22.0] injecting env (0) from .env.testing, index.js
missing command after [dotenvx run --]
get help: [dotenvx help run]
or try: [dotenvx run -- npm run dev]
If I run it under cmd it runs correctly.
Seems very similar to https://github.com/dotenvx/dotenvx/issues/309
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 16 (7 by maintainers)
– is a speical token The end-of-parameters token in powershell, so we need to pass – twice like
dotenvx run -f .env.testing -- -- node index.jsI have everything installed locally and not globally. See attached image. Output attached as well.