Closed GaramNick closed 3 years ago
Might be related to https://github.com/nrwl/nx/issues/2653
sam error encountered
nx migrate @nrwl/worksapce@8.12.11 --from="@nrwl/workspace@8.6.0"
or
nx migrate @nrwl/workspace@8.12.11
or
nx migrate @nrwl/workspace@~8.12.0
Fetching meta data about packages.
It may take a few minutes.
Fetching @nrwl/workspace@~8.12.0
Fetching @angular-devkit/architect@0.803.23
Fetching @angular-devkit/build-angular@0.803.23
Fetching @angular-devkit/build-ng-packagr@0.803.23
Fetching @angular-devkit/build-webpack@0.803.23
Fetching @angular-devkit/build-optimizer@0.803.23
Fetching @angular-devkit/schematics@8.3.23
Fetching @angular/cli@8.3.23
Fetching @schematics/angular@8.3.23
Fetching @nrwl/angular@undefined
Fetching @nrwl/cypress@undefined
Fetching @nrwl/jest@undefined
Fetching @nrwl/tao@undefined
ENOENT: no such file or directory, open '/var/folders/66/bdvy7l9x0ssd7sf8chk6ctww0000gn/T/tmp-55015ABwuD454C3GP/node_modules/@angular/cli/@schematics/angular/migrations/migration-collection.json'
/Users/boliang/Repository/idealx/node_modules/yargs/yargs.js:1109
else throw err
^
Error: Command failed: ./node_modules/.bin/tao migrate @nrwl/workspace@~8.12.0
at checkExecSyncError (child_process.js:621:11)
at Object.execSync (child_process.js:657:15)
at Object.handler (/Users/boliang/Repository/idealx/node_modules/@nrwl/workspace/src/command-line/nx-commands.js:99:21)
at Object.runCommand (/Users/boliang/Repository/idealx/node_modules/yargs/lib/command.js:235:44)
at Object.parseArgs [as _parseArgs] (/Users/boliang/Repository/idealx/node_modules/yargs/yargs.js:1022:30)
at Object.get [as argv] (/Users/boliang/Repository/idealx/node_modules/yargs/yargs.js:965:21)
at Object.initLocal (/Users/boliang/Repository/idealx/node_modules/@nrwl/cli/lib/init-local.js:18:26)
at Object.<anonymous> (/Users/boliang/Repository/idealx/node_modules/@nrwl/cli/bin/nx.js:9:18)
at Module._compile (internal/modules/cjs/loader.js:959:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10) {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 55015,
stdout: null,
stderr: null
}
nx migrate @nrwl/workspace
Fetching meta data about packages.
It may take a few minutes.
Fetching @nrwl/workspace@latest
Fetching @angular-devkit/architect@~0.901.0
Fetching @angular-devkit/build-angular@~0.901.0
Fetching @angular-devkit/build-ng-packagr@~0.901.0
Fetching @angular-devkit/build-webpack@~0.901.0
Fetching @angular-devkit/build-optimizer@~0.901.0
Fetching @angular-devkit/schematics@~9.1.0
Fetching @angular/cli@~9.1.0
Fetching @schematics/angular@~9.1.0
Fetching typescript@~3.8.3
Fetching @angular-devkit/core@~9.1.0
Fetching eslint@6.8.0
Fetching prettier@2.0.4
Fetching tslint@6.0.0
Fetching @ngrx/store@9.1.0
Fetching @ngrx/effects@9.1.0
Fetching @ngrx/entity@9.1.0
Fetching @ngrx/router-store@9.1.0
Fetching @ngrx/schematics@9.1.0
Fetching @ngrx/store-devtools@9.1.0
Fetching rxjs@~6.5.4
Fetching @angular/core@~9.1.0
Fetching @angular/common@~9.1.0
Fetching @angular/forms@~9.1.0
Fetching @angular/compiler@~9.1.0
Fetching @angular/compiler-cli@~9.1.0
Fetching @angular/platform-browser@~9.1.0
Fetching @angular/platform-browser-dynamic@~9.1.0
Fetching @angular/router@~9.1.0
Fetching @angular/language-service@~9.1.0
Fetching @angular/animations@~9.1.0
Fetching @nrwl/angular@undefined
Fetching @nrwl/cypress@undefined
Fetching @nrwl/jest@undefined
Fetching @nrwl/tao@undefined
ENOENT: no such file or directory, open '/var/folders/66/bdvy7l9x0ssd7sf8chk6ctww0000gn/T/tmp-55674XRgRElpauWj8/node_modules/@angular/cli/@schematics/angular/migrations/migration-collection.json'
/Users/boliang/Repository/idealx/node_modules/yargs/yargs.js:1109
else throw err
^
Error: Command failed: ./node_modules/.bin/tao migrate @nrwl/workspace
at checkExecSyncError (child_process.js:621:11)
at Object.execSync (child_process.js:657:15)
at Object.handler (/Users/boliang/Repository/idealx/node_modules/@nrwl/workspace/src/command-line/nx-commands.js:99:21)
at Object.runCommand (/Users/boliang/Repository/idealx/node_modules/yargs/lib/command.js:235:44)
at Object.parseArgs [as _parseArgs] (/Users/boliang/Repository/idealx/node_modules/yargs/yargs.js:1022:30)
at Object.get [as argv] (/Users/boliang/Repository/idealx/node_modules/yargs/yargs.js:965:21)
at Object.initLocal (/Users/boliang/Repository/idealx/node_modules/@nrwl/cli/lib/init-local.js:18:26)
at Object.<anonymous> (/Users/boliang/Repository/idealx/node_modules/@nrwl/cli/bin/nx.js:9:18)
at Module._compile (internal/modules/cjs/loader.js:959:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10) {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 55674,
stdout: null,
stderr: null
}
Getting same error
/var/folders/ct/_dbchgjd6p59q90jljwyw41m0000gr/T/tmp-26391HM2WzFehx0lS/node_modules/@angular/cli/@schematics/angular/migrations/migration-collection.json
The above path seems wrong, there is no @schematics
folder inside @angular/cli
it is directly present under node_modules.
Folks, there is this issue that talks about tricky migrations: https://github.com/nrwl/nx/issues/4333 (TLDR: use latest version of the migration logic and migrate one version at a time. )
Let me know if you still have issue given the points in the issue above.
Closing this, folks. Please reopen if you need more help.
Thanks!
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.
Upgrading our nx project fails on both
nx migrate @nrwl/workspace@9.1.2
andnx migrate @nrwl/workspace@9.1.2 --from="@nrwl/workspace@8.6.0"
package.json: