How to integrate with npx usage and node's --require?
See original GitHub issueHello,
Am trying to get dotenv’s ENV vars to work when using npx to launch Playwright e2e tests but am not having any luck!
SET "DEBUG=pw:api" && npx -c "-r dotenv/config DOTENV_CONFIG_PATH=STAGE.env DOTENV_CONFIG_DEBUG=true" playwright test ./apps/organization-e2e/tests "--config=./apps/organization-e2e/playwright.config.ts"
Any ideas? I know your docs talk specifically about using node to launch the app.
In advance, thank you!
Issue Analytics
- State:
- Created a year ago
- Comments:5
Top Results From Across the Web
How to use npx: the npm package runner - Scott Logic Blog
It works by checking if the npm package command exists in your local node_modules/. bin folder, or from a central npx cache and...
Read more >How To Use NPX In Node - Node For Beginners - 08 - YouTube
How To Use NPX - Node For Beginners - 08In this lecture, we are going to learn how to use NPX. We will...
Read more >An introduction to npx, the npm package runner - Medium
In this article, we'll talk about npx (package runner) — what it is, why we need it, and the use cases where the...
Read more >npx - npm Docs
Locally installed bins are always present in the executed process PATH . The --npm option is removed. npx will always use the npm...
Read more >Use npx to run locally installed node modules - Egghead.io
We will learn how to use npx to run node modules that are already installed locally in a package instead of manually poking...
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
Gracias @CanRau!
Un placer espero que te sirvió 🙌