nx: All Nx cli commands fail on 13.9
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",
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 7
- Comments: 21 (5 by maintainers)
Although the actual issue you’re reporting might not be fixed in
13.9.1, as I’m now getting:manual updated
@nrwl/clito version13.9.4solved it for me.npm i @nrwl/cli@13.9.4 -DNot sure if this helps. I recently ran the migration utility to migrate from nx 13.4.1 to latest, but for some reason, nx did not automatically update the version of
@nrwl/cli.Simply changing the
@nrwl/cliversion to match others fixed the issue.can confirm on 13.9.4, uninstalling
@nrwl/cliand installingnxworked for me.npm uninstall -D @nrwl/clinpm install -D nxI can run allnxcommands nowremoving
@nrwl/cliand replacing withnxworked for meUpdate: I think I understand what happened:
13.8.8(usingnpx add-nx-to-monorepo)npm installafter merging in another dev’s work that lead topackage-lock.jsongetting updated, and my version getting updated to13.9.x(I’m not sure if13.9.0or13.9.1)require('nx/bin/nx')in mynode_modules/.bin/nxstarted to fail silently because of@nrwl/clibeing removed in13.9.1. I don’t know why it didn’t throw aModule not found.13.9.2was released.Update: After updating to
13.9.2, I now see the warningPlease update your global Nxbut after that the command exits and keep doing the same thing as before.Hi @manan-jadhav is it possible for you to point me to a repo somewhere after running
npx add-nx-to-monorepo?I am unable to reproduce this issue.
@LuckeeDev See https://github.com/nrwl/nx/issues/9345, fixed in
13.9.1, which was just now released. You will want to restart your computer, as you are slowly being fork bombed.