Closed mhamri closed 1 year ago
Please try with the latest version. It should be fixed now.
@meeroslav unfortunately it doesn't work with latest version
PS C:\repo\toDelete\ngrx-nx-workshop\lab1-1> nx g @nrwl/nx-workshop:complete-labs --to 3
> NX Generating @nrwl/nx-workshop:complete-labs
Migration file generated, to complete the labs run:
nx migrate --run-migrations=migrations.json
UPDATE migrations.json
PS C:\repo\toDelete\ngrx-nx-workshop\lab1-1> nx migrate --run-migrations
> NX Running 'pnpm install --no-frozen-lockfile' to make sure necessary packages are installed
Lockfile is up to date, resolution step is skipped
Already up to date
Done in 2.2s
> NX Running migrations from 'migrations.json'
> NX Failed to run complete-lab-2 from @nrwl/nx-workshop. This workspace is NOT up to date!
> NX Cannot find module 'nx/src/lock-file/lock-file'
Require stack:
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\@nrwl+js@15.8.6_eslint@8.46.0_nx@16.9.1_prettier@2.8.8_typescript@4.9.5\node_modules\@nrwl\js\src\utils\package-json\update-package-json.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\@nrwl+js@15.8.6_eslint@8.46.0_nx@16.9.1_prettier@2.8.8_typescript@4.9.5\node_modules\@nrwl\js\src\utils\package-json\index.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\@nrwl+js@15.8.6_eslint@8.46.0_nx@16.9.1_prettier@2.8.8_typescript@4.9.5\node_modules\@nrwl\js\src\index.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\@nrwl+cypress@15.8.6_cypress@13.2.0_eslint@8.46.0_nx@16.9.1_prettier@2.8.8_typescript@4.9.5\node_modules\@nrwl\cypress\src\generators\cypress-project\cypress-project.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\@nrwl+cypress@15.8.6_cypress@13.2.0_eslint@8.46.0_nx@16.9.1_prettier@2.8.8_typescript@4.9.5\node_modules\@nrwl\cypress\index.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\@nrwl+angular@15.8.6_@angular-devkit+build-angular@16.2.3_@angular-devkit+core@16.2.3_@angula_oyd65brvl3osw4mo4aigwalqwy\node_modules\@nrwl\angular\src\generators\init\init.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\@nrwl+angular@15.8.6_@angular-devkit+build-angular@16.2.3_@angular-devkit+core@16.2.3_@angula_oyd65brvl3osw4mo4aigwalqwy\node_modules\@nrwl\angular\src\generators\application\application.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\@nrwl+angular@15.8.6_@angular-devkit+build-angular@16.2.3_@angular-devkit+core@16.2.3_@angula_oyd65brvl3osw4mo4aigwalqwy\node_modules\@nrwl\angular\generators.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\@nrwl+nx-workshop@0.4.11_@angular-devkit+build-angular@16.2.3_@angular-devkit+core@16.2.3_@an_gzbq26idpzvvdyw2dxkthcyxge\node_modules\@nrwl\nx-workshop\src\migrations\complete-lab-2\complete-lab-2.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\nx@16.9.1\node_modules\nx\src\command-line\migrate\migrate.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\nx@16.9.1\node_modules\nx\src\command-line\migrate\command-object.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\nx@16.9.1\node_modules\nx\src\command-line\nx-commands.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\nx@16.9.1\node_modules\nx\bin\init-local.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\nx@16.9.1\node_modules\nx\bin\nx.js
Pass --verbose to see the stacktrace.
Command failed: pnpm exec nx _migrate --run-migrations
> NX Command failed: pnpm exec nx migrate --run-migrations
Pass --verbose to see the stacktrace.
Command failed: C:\Users\amrim\AppData\Local\Temp\tmp-27612-Faj8SxACX5Qz\node_modules\.bin\nx _migrate --run-migrations
PS C:\repo\toDelete\ngrx-nx-workshop\lab1-1> nx migrate --run-migrations --verbose
> NX Running 'pnpm install --no-frozen-lockfile' to make sure necessary packages are installed
Lockfile is up to date, resolution step is skipped
Already up to date
Done in 2.1s
> NX Running migrations from 'migrations.json'
> NX Failed to run complete-lab-2 from @nrwl/nx-workshop. This workspace is NOT up to date!
> NX Cannot find module 'nx/src/lock-file/lock-file'
Require stack:
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\@nrwl+js@15.8.6_eslint@8.46.0_nx@16.9.1_prettier@2.8.8_typescript@4.9.5\node_modules\@nrwl\js\src\utils\package-json\update-package-json.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\@nrwl+js@15.8.6_eslint@8.46.0_nx@16.9.1_prettier@2.8.8_typescript@4.9.5\node_modules\@nrwl\js\src\utils\package-json\index.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\@nrwl+js@15.8.6_eslint@8.46.0_nx@16.9.1_prettier@2.8.8_typescript@4.9.5\node_modules\@nrwl\js\src\index.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\@nrwl+cypress@15.8.6_cypress@13.2.0_eslint@8.46.0_nx@16.9.1_prettier@2.8.8_typescript@4.9.5\node_modules\@nrwl\cypress\src\generators\cypress-project\cypress-project.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\@nrwl+cypress@15.8.6_cypress@13.2.0_eslint@8.46.0_nx@16.9.1_prettier@2.8.8_typescript@4.9.5\node_modules\@nrwl\cypress\index.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\@nrwl+angular@15.8.6_@angular-devkit+build-angular@16.2.3_@angular-devkit+core@16.2.3_@angula_oyd65brvl3osw4mo4aigwalqwy\node_modules\@nrwl\angular\src\generators\init\init.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\@nrwl+angular@15.8.6_@angular-devkit+build-angular@16.2.3_@angular-devkit+core@16.2.3_@angula_oyd65brvl3osw4mo4aigwalqwy\node_modules\@nrwl\angular\src\generators\application\application.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\@nrwl+angular@15.8.6_@angular-devkit+build-angular@16.2.3_@angular-devkit+core@16.2.3_@angula_oyd65brvl3osw4mo4aigwalqwy\node_modules\@nrwl\angular\generators.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\@nrwl+nx-workshop@0.4.11_@angular-devkit+build-angular@16.2.3_@angular-devkit+core@16.2.3_@an_gzbq26idpzvvdyw2dxkthcyxge\node_modules\@nrwl\nx-workshop\src\migrations\complete-lab-2\complete-lab-2.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\nx@16.9.1\node_modules\nx\src\command-line\migrate\migrate.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\nx@16.9.1\node_modules\nx\src\command-line\migrate\command-object.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\nx@16.9.1\node_modules\nx\src\command-line\nx-commands.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\nx@16.9.1\node_modules\nx\bin\init-local.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\nx@16.9.1\node_modules\nx\bin\nx.js
Error: Cannot find module 'nx/src/lock-file/lock-file'
Require stack:
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\@nrwl+js@15.8.6_eslint@8.46.0_nx@16.9.1_prettier@2.8.8_typescript@4.9.5\node_modules\@nrwl\js\src\utils\package-json\update-package-json.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\@nrwl+js@15.8.6_eslint@8.46.0_nx@16.9.1_prettier@2.8.8_typescript@4.9.5\node_modules\@nrwl\js\src\utils\package-json\index.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\@nrwl+js@15.8.6_eslint@8.46.0_nx@16.9.1_prettier@2.8.8_typescript@4.9.5\node_modules\@nrwl\js\src\index.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\@nrwl+cypress@15.8.6_cypress@13.2.0_eslint@8.46.0_nx@16.9.1_prettier@2.8.8_typescript@4.9.5\node_modules\@nrwl\cypress\src\generators\cypress-project\cypress-project.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\@nrwl+cypress@15.8.6_cypress@13.2.0_eslint@8.46.0_nx@16.9.1_prettier@2.8.8_typescript@4.9.5\node_modules\@nrwl\cypress\index.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\@nrwl+angular@15.8.6_@angular-devkit+build-angular@16.2.3_@angular-devkit+core@16.2.3_@angula_oyd65brvl3osw4mo4aigwalqwy\node_modules\@nrwl\angular\src\generators\init\init.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\@nrwl+angular@15.8.6_@angular-devkit+build-angular@16.2.3_@angular-devkit+core@16.2.3_@angula_oyd65brvl3osw4mo4aigwalqwy\node_modules\@nrwl\angular\src\generators\application\application.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\@nrwl+angular@15.8.6_@angular-devkit+build-angular@16.2.3_@angular-devkit+core@16.2.3_@angula_oyd65brvl3osw4mo4aigwalqwy\node_modules\@nrwl\angular\generators.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\@nrwl+nx-workshop@0.4.11_@angular-devkit+build-angular@16.2.3_@angular-devkit+core@16.2.3_@an_gzbq26idpzvvdyw2dxkthcyxge\node_modules\@nrwl\nx-workshop\src\migrations\complete-lab-2\complete-lab-2.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\nx@16.9.1\node_modules\nx\src\command-line\migrate\migrate.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\nx@16.9.1\node_modules\nx\src\command-line\migrate\command-object.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\nx@16.9.1\node_modules\nx\src\command-line\nx-commands.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\nx@16.9.1\node_modules\nx\bin\init-local.js
- C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\nx@16.9.1\node_modules\nx\bin\nx.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1026:15)
at Function.Module._load (node:internal/modules/cjs/loader:871:27)
at Module.require (node:internal/modules/cjs/loader:1098:19)
at require (node:internal/modules/cjs/helpers:108:18)
at Object.<anonymous> (C:\repo\toDelete\ngrx-nx-workshop\lab1-1\node_modules\.pnpm\@nrwl+js@15.8.6_eslint@8.46.0_nx@16.9.1_prettier@2.8.8_typescript@4.9.5\node_modules\@nrwl\js\src\utils\package-json\update-package-json.js:4:21)
at Module._compile (node:internal/modules/cjs/loader:1196:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1250:10)
at Module.load (node:internal/modules/cjs/loader:1074:32)
at Function.Module._load (node:internal/modules/cjs/loader:909:12)
at Module.require (node:internal/modules/cjs/loader:1098:19)
Command failed: pnpm exec nx _migrate --run-migrations --verbose
> NX Command failed: pnpm exec nx migrate --run-migrations --verbose
Error: Command failed: pnpm exec nx migrate --run-migrations --verbose
at checkExecSyncError (node:child_process:861:11)
at execSync (node:child_process:932:15)
at runNxSync (C:\Users\amrim\AppData\Local\Temp\tmp-18484-iWWKImxR431t\node_modules\.pnpm\nx@16.9.1\node_modules\nx\src\utils\child-process.js:25:34)
at runMigrations (C:\Users\amrim\AppData\Local\Temp\tmp-18484-iWWKImxR431t\node_modules\.pnpm\nx@16.9.1\node_modules\nx\src\command-line\migrate\migrate.js:937:39)
at C:\Users\amrim\AppData\Local\Temp\tmp-18484-iWWKImxR431t\node_modules\.pnpm\nx@16.9.1\node_modules\nx\src\command-line\migrate\migrate.js:1031:19
at async handleErrors (C:\Users\amrim\AppData\Local\Temp\tmp-18484-iWWKImxR431t\node_modules\.pnpm\nx@16.9.1\node_modules\nx\src\utils\params.js:9:16)
Command failed: C:\Users\amrim\AppData\Local\Temp\tmp-18484-iWWKImxR431t\node_modules\.bin\nx _migrate --run-migrations --verbose
I've tried the npm too, the error is same as pnpm.
We will have a look as soon as possible. Thank you for bringing it to our attention
content of migrations.json
and this is the error