Installing @nrwl/cli 13.9.3 results in `command not found: nx`
See original GitHub issueCurrent 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:
- Created 2 years ago
- Reactions:6
- Comments:7
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Sorry we purposely got rid of it because it was conflicting within workspaces.
Can you please install
nx
instead?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
?