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.

How to integrate with npx usage and node's --require?

See original GitHub issue

Hello,

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:open
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
herodriguez7commented, Sep 28, 2022

Gracias @CanRau!

0reactions
CanRaucommented, Sep 28, 2022

Un placer espero que te sirvió 🙌

Read more comments on GitHub >

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

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