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.

error Command "nx" not found while running webserver?

See original GitHub issue

i try to use playwright with nx. Storybook is needed for running ui tests

My config:

webServer: {
    command:  'yarn nx run app:storybook --port 4201',
    timeout: 1500000,
    url: 'http://localhost:4201',
  },

When i run test with extensions, i get

Running 2 tests using 2 workers

[WebServer] warning package.json: No license field
[WebServer] error Command "nx" not found.

Error: Process from config.webServer was not able to start. Exit code: 1

Also “Execute Using Profile” isn’t working

any idea?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
pauleusticecommented, Aug 5, 2022

I had the same issue. For future reference if anyone else runs into this:

  • node_modules/.bin/nx your-command (or variants with a relative root e.g. ../../) doesn’t work
  • cd ../../node_modules/.bin && nx your-command doesn’t work
  • npm run nx your-command does work (you just need "nx": "nx", in your package.json scripts)
0reactions
pavelfeldmancommented, May 2, 2022

We need more information to act on this report. Please file a new one and link to this issue when you get back to it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

angularjs - zsh: command not found: nx - Stack Overflow
I am trying to create a library in Angular using nx g @nrwl/angular:lib shared but ...
Read more >
Node JS Tutorial: The Basics
Error Notes: If you encounter "error: module not found", you may try adding the " node_modules " directory to the NODE_PATH environment variable....
Read more >
DNS_PROBE_FINISHED_NXDO...
The DNS_PROBE_FINISHED_NXDOMAIN error happens when your web browser can't find the website you want to visit. Basically, the DNS (Domain Name ...
Read more >
How to Fix 'Terminated With Exit Code 1' Error - Komodor
Check if a file listed in the image specification was not found. · In Docker, use the docker stop command to stop the...
Read more >
Angular Service Worker - Step-By-Step Guide
With a couple of commands, the CLI will give us a working application that has ... An unknown error occurred when fetching the...
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