nx: Cannot install NX or CLI due to Tao version mismatch
Current Behavior
When trying to install NX or CLI via npm, it errors out saying No matching version found for @nrwl/tao@12.99.0.
Expected Behavior
It should be looking for available versions
Steps to Reproduce
Try to install NX or @nrwl/cli on a global scope or a project without a package lock.
Failure Logs
❯ npm i @nrwl/cli
npm ERR! code ETARGET
npm ERR! notarget No matching version found for @nrwl/tao@12.99.0.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of '@nrwl/cli'
npm ERR! notarget
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 19
- Comments: 16
Was able to get around this with
npm i @nrwl/cli@12.0.1which seems to effectively install nx, may need to delete~/.nvm/versions/node/v15.12.0/bin/nxor any other file conflict that comes up if you see an EEXIST error (also see related issue that happened a few months ago: https://github.com/nrwl/nx/issues/4311)It seems the release 12.0.2 that was published 1 hour ago is broken.
I’ve just had to set the version to 12.0.1 when installing a package.
Example:
I’m having this issue again: https://github.com/nrwl/nx/issues/5327#issue-856394660
Can confirm
npm i -g nxandnpm i -g @nrwl\cliare working. Thank you @FrozenPandaz !Can confirm that the
migratecommand is working as expected now. Thank you, @FrozenPandaz12.0.2 is broken. 12.0.1 worked for me.