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.

All Nx cli commands fail on 13.9

See original GitHub issue

Current Behavior

All NX cli commands fail for me with no output, even --help.

Expected Behavior

Nx cli commands should work - at least --help should.

This started to happen since yesterday, giving me the hint that this might be a regression in 13.9

Steps to Reproduce

I already had a monorepo - so I ran this command according to docs: npx add-nx-to-monorepo

I’ve done this multiple times, after switching to a clean branch and clearing node_modules, and running npm install.

When I pin the @nrwl/* versions to 13.8, it works fine.

Failure Logs

Nx commands return nothing except a non-zero return code. Stdout / stderr is completely empty, even for npx nx

Environment

Node : 14.17.5 OS : darwin x64 npm : 6.14.14

The following version gives me this error:

"@nrwl/cli": "latest",
"@nrwl/tao": "latest",
"@nrwl/workspace": "latest",

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:7
  • Comments:20 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
andynunescommented, Mar 16, 2022

Although the actual issue you’re reporting might not be fixed in 13.9.1, as I’m now getting:

Unexpected error:
Error: Cannot find module 'nx/src/cli/run-cli.js'
3reactions
vltanskycommented, Mar 24, 2022

manual updated @nrwl/cli to version 13.9.4 solved it for me. npm i @nrwl/cli@13.9.4 -D

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why am i getting error on using any `nx` commands
Just had this issue myself. Fixed it by deleting all my node_modules, verifying npm cache, updating my global @nrwl-cli, and reinstalling.
Read more >
nx cannot read properties of undefined (reading 'endswith')
I have nx 14.4.3 version in my system. And when I run nx serve it gives me the error :- TypeError: Cannot read...
Read more >
"File System and OS" Error in Jetpack 4.5.1 Linux for Jetson ...
Hello, I am writing to inquire about an installation error I have ... please share the whole command line and error messages for...
Read more >
Debugging with GDB - sourceware.org
Exit with nonzero status if an error occurs in executing the GDB commands in the ... being loaded using the ' -nx '...
Read more >
@nrwl/linter - NPM Package Overview - Socket
The Linter plugin for Nx contains executors, generators and utilities used for linting JavaScript/TypeScript projects within an Nx workspace.
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