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.

"Please update your global install of Nx " - 13.9.2@nrwl/workspace:run-commands

See original GitHub issue

Current 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:closed
  • Created 2 years ago
  • Reactions:18
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
alexandrequillacqcommented, Mar 29, 2022

You can try to uninstall @nrwl/cli and install nx instead:

npm uninstall -D @nrwl/cli
npm install -D nx

Nx commands are now working for me

1reaction
meeroslavcommented, Apr 4, 2022

The cleanest fix currently is to clean the packages during the migration. Follow these steps:

  • nx migrate latest
  • remove node_modules and lock file (e.g. rm -rf node_modules package-lock.json
  • install packages (npm install, yarn or pnpm install)
  • nx migrate --run-migrations
Read more comments on GitHub >

github_iconTop 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 >

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