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

Most upvoted comments

Was able to get around this with npm i @nrwl/cli@12.0.1 which seems to effectively install nx, may need to delete ~/.nvm/versions/node/v15.12.0/bin/nx or 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:

npm install -D @nrwl/nest@12.0.1

Can confirm npm i -g nx and npm i -g @nrwl\cli are working. Thank you @FrozenPandaz !

Can confirm that the migrate command is working as expected now. Thank you, @FrozenPandaz

12.0.2 is broken. 12.0.1 worked for me.