You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Failed to install the latest version of the migration script.ย #23222
I ran this just now (18.3.4->19.0.1). Same error. --verbose didn't output anything more or any error logs.
root@RBIRK:/mnt/d/Git/cloud-ui# npx nx migrate latest --verbose
Failed to install the latest version of the migration script. Using the current version.
...
NX The migrate command has run successfully.
- package.json has been updated.
- There are no migrations to run, so migrations.json has not been created.
@rbirkgit it will still happen until you're migrated to Nx 19.0.2. After that, the error will go away. The reason is that the version you have installed has the issue. Only when you have Nx 19.0.2 (the version with the fix), the issue will go away.
% nx report
NX Falling back to ts-node for local typescript execution. This may be a little slower.
- To fix this, ensure @swc-node/register and @swc/core have been installed
NX Report complete - copy this into the issue template
Node : 22.2.0
OS : darwin-x64
yarn : 1.22.22
nx (global) : 19.2.2
nx : 19.2.2
@nx/js : 19.2.2
@nx/jest : 19.2.2
@nx/linter : 19.2.2
@nx/eslint : 19.2.2
@nx/workspace : 19.2.2
@nrwl/workspace : 8.12.11
@nx/angular : 19.2.2
@nx/cypress : 19.2.2
@nx/devkit : 19.2.2
@nrwl/devkit : 13.10.6
@nx/eslint-plugin : 19.2.2
@nx/express : 19.2.2
@nx/nest : 19.2.2
@nx/node : 19.2.2
@nx/storybook : 19.2.2
@nrwl/tao : 19.2.2
@nx/web : 19.2.2
@nx/webpack : 19.2.2
@nrwl/schematics : 8.12.11
typescript : 5.4.5
---------------------------------------
Community plugins:
@compodoc/compodoc : 1.1.25
@fortawesome/angular-fontawesome : 0.11.1
@ionic/angular : 6.7.5
@ngneat/transloco : 4.3.0
@ngrx/component : 17.0.1
@ngrx/component-store : 17.0.1
@ngrx/effects : 17.0.1
@ngrx/entity : 17.0.1
@ngrx/router-store : 17.0.1
@ngrx/schematics : 17.0.1
@ngrx/store : 17.0.1
@ngrx/store-devtools : 17.0.1
@nxtend/capacitor : 13.0.0
@nxtend/ionic-angular : 13.1.0
@storybook/angular : 7.6.6
angular-builder-custom-terser-options : 1.0.1
apollo-angular : 4.2.1
---------------------------------------
The following packages should match the installed version of nx
- @nrwl/workspace@8.12.11
- @nrwl/devkit@13.10.6
To fix this, run `nx migrate nx@19.2.2`
$ /Users/meanstack02/meanstacknh/node_modules/.bin/nx migrate --run-migrations
Failed to install the latest version of the migration script. Using the current version.
Error: Command failed: yarn
at genericNodeError (node:internal/errors:983:15)
at wrappedFn (node:internal/errors:537:14)
at checkExecSyncError (node:child_process:889:11)
at execSync (node:child_process:961:15)
at nxCliPath (/Users/meanstack02/meanstacknh/node_modules/nx/src/command-line/migrate/command-object.js:137:38)
at runMigration (/Users/meanstack02/meanstacknh/node_modules/nx/src/command-line/migrate/command-object.js:90:19)
at Object.handler (/Users/meanstack02/meanstacknh/node_modules/nx/src/command-line/migrate/command-object.js:18:9)
at /Users/meanstack02/meanstacknh/node_modules/yargs/build/index.cjs:1:8993
at j (/Users/meanstack02/meanstacknh/node_modules/yargs/build/index.cjs:1:4956)
at _.handleValidationAndGetResult (/Users/meanstack02/meanstacknh/node_modules/yargs/build/index.cjs:1:8962) {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 8593,
stdout: null,
stderr: null
}
warning package.json: "dependencies" has dependency "dotenv" with range "^16.0.1" that collides with a dependency in "devDependencies" of the same name with version "^16.4.5"
$ /Users/meanstack02/meanstacknh/node_modules/.bin/nx _migrate --run-migrations
NX Running 'yarn' to make sure necessary packages are installed
Activity
leosvelperez commentedon May 8, 2024
Thanks for reporting this!
Could you please run with
--verboseorNX_VERBOSE_LOGGING=trueand share the error logs? Are you trying to migrate from Nx 18.3.4?rbirkgit commentedon May 8, 2024
Yes, this time from 18.3.4 to 19.0.0. Got same issues with previous updates.
Let me try with added verbose info.
rbirkgit commentedon May 8, 2024
I ran this just now (18.3.4->19.0.1). Same error. --verbose didn't output anything more or any error logs.
leosvelperez commentedon May 8, 2024
I see. Could you try running
NX_VERBOSE_LOGGING=true npx nx migrate latest?rbirkgit commentedon May 8, 2024
Got this now:
rbirkgit commentedon May 8, 2024
I tried directly in windows terminal and got same error. In the past migration has never worked well directly in windows, and why I switched to WSL.
Just in case, this is the difference from error above on windows. The rest of the error is identical.
leosvelperez commentedon May 8, 2024
Thanks for the info! I've identified the issue and I'll push a fix.
fix(core): set yarn berry nodeLinker correctly in migrate command (#2โฆ
rbirkgit commentedon May 9, 2024
I still get the same error updating to 19.0.2.
Maybe the fix didn't make it? The release notes seem to indicate it did and why I tried.
rbirkgit commentedon May 9, 2024
@leosvelperez getting same error in my WSL ubuntu env too with 19.0.2
leosvelperez commentedon May 10, 2024
@rbirkgit it will still happen until you're migrated to Nx 19.0.2. After that, the error will go away. The reason is that the version you have installed has the issue. Only when you have Nx 19.0.2 (the version with the fix), the issue will go away.
rbirkgit commentedon May 10, 2024
That explains it! Thanks!
MEANSTACKDIGITAL commentedon Jun 10, 2024
I have 19.2.2 and its showing up
just an FYI
github-actions commentedon Jul 11, 2024
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.