nx: Migrate fails
Current Behavior
When running yarn dlx nx migrate latest the process fails with the following message
ERROR The migrate command failed.
Command failed: yarn add -W @nrwl/workspace@latest
Expected Behavior
It should work.
Failure Logs
Fetching meta data about packages.
It may take a few minutes.
Fetching @nrwl/workspace@latest
ERROR The migrate command failed.
Command failed: yarn add -W @nrwl/workspace@latest
Environment
Node : 16.14.0 OS : linux x64 yarn : 3.0.2
nx : 13.9.5 @nrwl/angular : Not Found @nrwl/cypress : 13.9.5 @nrwl/detox : Not Found @nrwl/devkit : 13.9.5 @nrwl/eslint-plugin-nx : 13.9.5 @nrwl/express : Not Found @nrwl/jest : 13.9.5 @nrwl/js : 13.9.5 @nrwl/linter : 13.9.5 @nrwl/nest : Not Found @nrwl/next : Not Found @nrwl/node : Not Found @nrwl/nx-cloud : Not Found @nrwl/nx-plugin : Not Found @nrwl/react : 13.9.5 @nrwl/react-native : Not Found @nrwl/schematics : 8.12.11 @nrwl/storybook : 13.9.5 @nrwl/web : 13.9.5 @nrwl/workspace : 13.9.5 typescript : 4.3.5 rxjs : 6.6.7
Community plugins:
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 19 (1 by maintainers)
still error on 14.1.9
after read this: https://github.com/nrwl/nx/issues/10218#issuecomment-1123597909
the update run without error but some error when running it, seems the run-migration not 100% works error on newest version of react and react router, it run after I fix it manually
unfortunately still error with latest version 14.1.5
@MrChrisRodriguez
I am trying to update from 13.9.5 to 13.10.3.
I have also tried also with just
yarn nx migrate 13.10.3and I get the same result.Even if I install it as a dev dependency, it still fails with the error
Command failed: yarn add -W @nrwl/cypress@14.1.4Could we get some traction here? This looks like a show stopper if you are on a version with a bug, but are unable to upgrade to a version with a fix. @FrozenPandaz, @vsavkin, @bcabanes…
I am having similar problem,
Command:
npx nx migrate latest/yarn nx migrate latest(I tried both) I also tried delete node_modules folder and yarn cache clean --allError Messages: Command failed: yarn add -W @nrwl/cypress@14.1.4 warning package.json: No license field warning No license field error https://registry.yarnpkg.com/@nrwl/cypress/-/cypress-14.1.4.tgz: Extracting tar content of undefined failed, the file appears to be corrupt: “EEXIST: file already exists, mkdir ‘C:\Users\pipiz\AppData\Local\Yarn\Cache\v6\npm-@nrwl-cypress-14.1.4-7ac38ead60afee62e1d253f958bba7f575e2b698-integrity\node_modules\@nrwl\cypress\src\migrations\update-9-4-0’”
Environment: Node : 16.13.1 OS : win32 x64 yarn : 1.22.18 nx : 13.2.2 @nrwl/angular : undefined @nrwl/cli : 13.2.2 @nrwl/cypress : 13.2.2 @nrwl/devkit : 13.2.2 @nrwl/eslint-plugin-nx : 13.2.2 @nrwl/express : undefined @nrwl/jest : 13.2.2 @nrwl/linter : 13.2.2 @nrwl/nest : 13.2.2 @nrwl/next : undefined @nrwl/node : 13.2.2 @nrwl/nx-cloud : undefined @nrwl/react : 13.2.2 @nrwl/react-native : undefined @nrwl/schematics : undefined @nrwl/tao : 13.2.2 @nrwl/web : 13.2.2 @nrwl/workspace : 13.2.2 @nrwl/storybook : 13.2.2 @nrwl/gatsby : undefined typescript : 4.3.5 rxjs : 7.4.0
I’m getting a similar error: