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.

Migrating from 13.8.1 to 13.9.6 throws `Please update your global install of Nx`

See original GitHub issue

Updating from 13.8.1 to 13.9.6 didn’t throw any errors

Running migration 13-9-0-update-decorate-cli
Successfully finished 13-9-0-update-decorate-cli
---------------------------------------------------------
Running migration 13-9-0-replace-tao-with-nx
Successfully finished 13-9-0-replace-tao-with-nx
---------------------------------------------------------
Running migration rename-build-to-webpack
Successfully finished rename-build-to-webpack
---------------------------------------------------------
Running migration rename-execute-to-node
Successfully finished rename-execute-to-node
---------------------------------------------------------
Running migration update-package-to-tsc
Successfully finished update-package-to-tsc
---------------------------------------------------------

but as I want to run any nx command I always get the errors

Please update your global install of Nx
- npm install -g nx

The global install of nx is of course correct.

I had to run npm install -D nx. Then all nx serve commands are working again. But still I do get always the output

Please update your global install of Nx
- npm install -g nx

Environment

Node : 16.14.0 OS : darwin arm64 npm : 8.3.1

nx : 13.9.6 @nrwl/angular : Not Found @nrwl/cypress : 13.9.6 @nrwl/detox : Not Found @nrwl/devkit : 13.9.6 @nrwl/eslint-plugin-nx : 13.9.6 @nrwl/express : Not Found @nrwl/jest : 13.9.6 @nrwl/js : 13.9.6 @nrwl/linter : 13.9.6 @nrwl/nest : 13.9.6 @nrwl/next : 13.9.6 @nrwl/node : 13.9.6 @nrwl/nx-cloud : Not Found @nrwl/nx-plugin : Not Found @nrwl/react : 13.9.6 @nrwl/react-native : Not Found @nrwl/schematics : Not Found @nrwl/storybook : 13.9.6 @nrwl/web : 13.9.6 @nrwl/workspace : 13.9.6 typescript : 4.5.4 rxjs : 7.4.0

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
AgentEndercommented, Apr 5, 2022

Make sure nx is installed as a dependency or dev dependency, the bin moved from @nrwl/cli => nx

0reactions
AgentEndercommented, Apr 5, 2022

It needs to be listed in package.json

Read more comments on GitHub >

github_iconTop Results From Across the Web

Automate Updating Dependencies - Nx
Automate Updating Dependencies. The Nx CLI provides the migrate command to help you stay up to date with the latest version of Nx....
Read more >
nx cannot read properties of undefined (reading 'map')
my storybook is running on localhost:4400 and working properly, has anyone experienced this error? Open side panel.
Read more >
pyhf Documentation
This package introduces an updated form of the specification based on the ubiquitous plain-text JSON format and its.
Read more >
NX workspace - angular 14 - jest not working - Stack Overflow
I was able to upgrade to 14. nx migrate latest. Open the root package.json file. restore the ~ and ^; remove the ......
Read more >
@nrwl/node: Versions | Openbase
Full version history for @nrwl/node including change logs. ... angular: don't set the workspaceLayout when migrating an angular cli workspace to nx (#13546) ......
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