为什么运行nx migratelatest命令后没有生成migration.json文件?

问题描述 投票:0回答:2
 nx migrate @nrwl/[email protected]
Fetching meta data about packages.
It may take a few minutes.
Fetching @nrwl/[email protected]
Fetching @nrwl/[email protected]

 >  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.


 >  NX   Next steps:

   - Make sure package.json changes make sense and then run 'yarn',
   - To learn more go to https://nx.dev/core-features/automate-updating-dependencies

预期:“migration.json 文件已成功创建”

angular migrate monorepo nrwl-nx nrwl
2个回答
1
投票

我也遇到过同样的情况。运行命令

nx repair
解决了它。 https://nx.dev/packages/nx/documents/repair


0
投票

如果修复命令不起作用,请尝试运行

nx migrate @nrwl/workspace
..

© www.soinside.com 2019 - 2024. All rights reserved.