Hi all I was wondering …

less than 1 minute read

Hi all, I was wondering which is the best strategy to upgrade your Nx version. You can do npm run update which calls ng update @nrwl/workspace But in the documentation it’s recommended to use the following comman nx migrate @nrwl/workspace (https://nx.dev/angular/guides/update) Nx: Extensible Dev Tools for Monorepos


When you initially configured your workspace, did you choose to use the Angular or Nx CLI? If you don’t remember being asked, do you have an angular.json or workspace.json file in the root of your workspace?

it’s an angular setup :slightly_smiling_face:

Then you’ll want to use ng update or the npm command. The Nx command is for workspaces configured for the Nx CLI.

ok, tnx for the information :slightly_smiling_face:

No problem! Also, if you had generated your project for the Nx CLI then your package.json would feature nx commands instead of ng.