找不到模块'@nrwl/workspace/src/utilities/perf"/>
错误:找不到模块'@nrwl/workspace/src/utilities/perf
我已经尝试运行 nxMonrepo 的 Angular 项目并且我已经安装了所有 node_modules 并且当我尝试运行 PS C:\Users\Dell\Desktop\MEANAPP\EAAPP> nx migrate --run-migrations 时它没有显示任何错误
Error: Cannot find module '@nrwl/workspace/src/utilities/perf-logging'
Require stack:
- C:\Users\Dell\Desktop\MEANAPP\EAAPP\node_modules\@nrwl\cli\lib\init-local.js
- C:\Users\Dell\Desktop\MEANAPP\EAAPP\node_modules\@nrwl\cli\bin\nx.js
- C:\Users\Dell\AppData\Roaming\npm\node_modules\nx\bin\nx.js
回答如下:
仔细检查
@nrwl/cli
(现在@nx/cli
)版本是否与@nrwl/workspace
(现在@nx/workspace
)相同-安装相同版本解决了类似的问题。 来源
更多推荐
错误:找不到模块'@nrwl/workspace/src/utilities/perf
发布评论