"Please update your global install of Nx " - 13.9.2@nrwl/workspace:run-commands
See original GitHub issueCurrent Behavior
Even though I update nx globally and @nrwl/cli from my projects to 13.9.2 I got this warning output from every nx commands wrap in executor:run-commands.
Please update your global install of Nx
- npm install -g nx
Related to #9359
Expected Behavior
Last @nrwl/workspace:run-commands should not output warning about updating 😃
Steps to Reproduce
-
Create a workspace with angular preset
npx create-nx-workspace@latest
-
Wrap default build command with an executor
"build-app": {
"executor": "@nrwl/workspace:run-commands",
"options": {
"commands": ["nx run test-ng:build"],
"parallel": false
}
},
- nx build
no warning
- nx build-app
> nx run test-ng:build-app
Please update your global install of Nx
- npm install -g nx
> nx run test-ng:build:production
Environment
Windows 10 - WSL2 Ubuntu Node 16 - npm 8 Angular 13.3 - Nx 13.9.2
Issue Analytics
- State:
- Created 2 years ago
- Reactions:18
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Does NX need to be installed globally by people who only ...
You don't need global nx installation, provided you point your mono-repo to a local copy of nx found at node_modules/@nrwl/cli/bin/nx.js .
Read more >nx - npm
Nx is a next generation build system with first class monorepo support and powerful integrations. Getting Started. Creating an Nx Workspace.
Read more >nrwl/nx-plugin
Nx provides a utility ( nx list ) that lists both core and community plugins. To submit your plugin, please follow the steps...
Read more >What is new in Nx 13.10?
Whenever you change a file, the project graph needs to be ... Install @nrwl/nx-plugin into your Nx workspace and generate a new plugin:...
Read more >The ultimate migration guide to angular-eslint, ESLint and Nx 11
x is installed globally. Install Angular CLI version 11.x globally just in case. Setting up a new Nx Angular workspace with angular-eslint. In ......
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
You can try to uninstall @nrwl/cli and install nx instead:
Nx commands are now working for me
The cleanest fix currently is to clean the packages during the migration. Follow these steps:
rm -rf node_modules package-lock.json