error Command "nx" not found while running webserver?
See original GitHub issuei 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:
- Created a year ago
- Comments:5 (3 by maintainers)
Top 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 >
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
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 workcd ../../node_modules/.bin && nx your-command
doesn’t worknpm run nx your-command
does work (you just need"nx": "nx",
in yourpackage.json
scripts)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!