执行:npm run build:admin 时,报错:NX Failed to process the project graph with “nx-js-graph-pllugin”

1、执行:npm run build:admin 时,报错:NX Failed to process the project graph with “nx-js-graph-pllugin”。如图1

图1

2、原因应该在于此项目的默认的包管理器是 pnpm,如图2

图2

3、最终依次执行:pnpm install、pnpm run build:admin。执行成功,不再报错。一般来说,建议某一个项目一直使用一个包管理器,不要来回切换,可能会出问题。

永夜