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.

Installing @nrwl/cli 13.9.3 results in `command not found: nx`

See original GitHub issue

Current Behavior

Running npm install -g @nrwl/cli@13.9.3 installs the nx cli packages, but running any nx command results in “command not found: nx”

Expected Behavior

The nx command should resolve to the binaries in the @nrwl/cli package.

Steps to Reproduce

npm install -g @nrwl/cli@13.9.3

nx --help # this comes back with command not found

npm install -g @nrwl/cli@13.9.2

nx --help # this will show the normal help file.

Note - the command still works if you run npx nx ...., but not if you use nx directly.

Environment

  Node : 16.13.0
  OS   : linux x64
  npm  : 8.3.2

  nx : 13.1.3
  @nrwl/angular : 13.1.3
  @nrwl/cli : 13.1.3
  @nrwl/cypress : 13.1.3
  @nrwl/devkit : 13.1.3
  @nrwl/eslint-plugin-nx : 13.1.3
  @nrwl/express : Not Found
  @nrwl/jest : 13.1.3
  @nrwl/linter : 13.1.3
  @nrwl/nest : Not Found
  @nrwl/next : Not Found
  @nrwl/node : Not Found
  @nrwl/nx-cloud : Not Found
  @nrwl/react : Not Found
  @nrwl/schematics : Not Found
  @nrwl/tao : 13.1.3
  @nrwl/web : Not Found
  @nrwl/workspace : 13.1.3
  @nrwl/storybook : 13.1.3
  @nrwl/gatsby : Not Found
  typescript : 4.3.5

That’s from my local machine. We first saw this in the Azure DevOps ubuntu-latest VMs.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:6
  • Comments:7

github_iconTop GitHub Comments

9reactions
FrozenPandazcommented, Mar 18, 2022

Sorry we purposely got rid of it because it was conflicting within workspaces.

Can you please install nx instead?

npm install -g nx@latest
6reactions
hcharleycommented, Mar 30, 2022

This caught me off guard as well. Glad the fix looks easy enough.

Can anyone link to when installing nx became suggested?

Do we still need to install @nrwl/cli?

Read more comments on GitHub >

github_iconTop Results From Across the Web

angularjs - zsh: command not found: nx
I try using this: npm install -g nx so maybe it install nx and it works, but I still keep getting the same...
Read more >
nx: command not found error [Solved]
Use npx to solve the error "nx: command not found", e.g. npx nx or install the package globally by running npm install -g...
Read more >
nrwl/cli - npm Package Health Analysis
Ensure you're using the healthiest npm packages. Snyk scans all the packages in your projects for vulnerabilities and provides automated fix advice.
Read more >
nx cannot read properties of undefined (reading 'endswith')
So I set @angular/cli to version 14.2.1 and @nrwl/cli to 14.6.4 . ... Tried uninstalling and reinstalling with npm install nx@10.4.15. No success....
Read more >
nrwl/cli
The create-nx-workspace command will ask you to select a preset, which will configure some plugins and create your applications to help you ...
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