NX从V11升级到v12.10.1是未找到的“模块”。迁移期间的错误
我目前在项目中使用Angular 11使用NX版本11。我正在尝试将NX升级到v12.10.1。我相信这是NX在我的项目中使用Angular 12的最后更新。到目前为止,这就是我所做的。
将节点更新为v18.3.0
将NPM更新为v8.11.0
运行命令
NPX NX迁移12.10.1
Fetching meta data about packages.
It may take a few minutes.
Fetching @nrwl/[email protected]
Fetching @nrwl/[email protected]
Fetching @nrwl/[email protected]
Fetching @nrwl/[email protected]
Fetching @nrwl/[email protected]
Fetching @ngrx/[email protected]
Fetching @ngrx/[email protected]
Fetching @ngrx/[email protected]
Fetching @angular/[email protected]
Fetching @angular/[email protected]
Fetching @angular/[email protected]
Fetching @angular/[email protected]
Fetching @ngrx/[email protected]
Fetching @angular/cli@~12.2.0
无错误。因此,继续。
rm -rf node_modules/package -lock.json
进行新的安装。新鲜
NPM安装
运行命令
NPX NX迁移 - 运行移民
出现错误,例如代码:module_not_found。 “找不到模块 @nrwl/tao/src/utils/app-root”。屏幕截图附加了。
关于如何解决此问题的任何想法?
I am currently on Nx version 11 using Angular 11 in my project. I am trying to upgrade Nx to v12.10.1. I believe it is the last update of Nx to use Angular 12 in my project. So far, here is what I did.
Update Node to v18.3.0
Update NPM to v8.11.0
Run command
npx nx migrate 12.10.1
Fetching meta data about packages.
It may take a few minutes.
Fetching @nrwl/[email protected]
Fetching @nrwl/[email protected]
Fetching @nrwl/[email protected]
Fetching @nrwl/[email protected]
Fetching @nrwl/[email protected]
Fetching @ngrx/[email protected]
Fetching @ngrx/[email protected]
Fetching @ngrx/[email protected]
Fetching @angular/[email protected]
Fetching @angular/[email protected]
Fetching @angular/[email protected]
Fetching @angular/[email protected]
Fetching @ngrx/[email protected]
Fetching @angular/cli@~12.2.0
No errors. Hence, continue.
rm -rf node_modules/ package-lock.json
To do it fresh installation.fresh
npm install
Run command
npx nx migrate --run-migrations
Got an error as code: MODULE_NOT_FOUND. "Cannot find module @nrwl/tao/src/utils/app-root". screenshot attached.
Any ideas on how to fix this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论