Angular CLI:9.0.6:发生未处理的异常:找不到模块'@ angular-devkit / build-angular / package.json'

时间:2020-03-17 10:54:38

标签: angular-cli

从Git拉出的包裹。在我的其他机器(Windows)上,它工作得很好。但是,当我将其拉入Mac并尝试构建它时..它显示以下错误。

我已经尝试过npm清除缓存--force等...。

Angular CLI:9.0.6 节点:13.8.0 操作系统:darwin x64

Require stack:
- /usr/local/lib/node_modules/@angular/cli/node_modules/@angular-devkit/architect/node/node-modules-architect-host.js
- /usr/local/lib/node_modules/@angular/cli/node_modules/@angular-devkit/architect/node/index.js
- /usr/local/lib/node_modules/@angular/cli/models/architect-command.js
- /usr/local/lib/node_modules/@angular/cli/commands/serve-impl.js
- /usr/local/lib/node_modules/@angular/cli/node_modules/@angular-devkit/schematics/tools/export-ref.js
- /usr/local/lib/node_modules/@angular/cli/node_modules/@angular-devkit/schematics/tools/index.js
- /usr/local/lib/node_modules/@angular/cli/utilities/json-schema.js
- /usr/local/lib/node_modules/@angular/cli/models/command-runner.js
- /usr/local/lib/node_modules/@angular/cli/lib/cli/index.js
- /usr/local/lib/node_modules/@angular/cli/lib/init.js
- /usr/local/lib/node_modules/@angular/cli/bin/ng
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:980:15)
    at Function.resolve (internal/modules/cjs/helpers.js:78:19)
    at WorkspaceNodeModulesArchitectHost.resolveBuilder (/usr/local/lib/node_modules/@angular/cli/node_modules/@angular-devkit/architect/node/node-modules-architect-host.js:41:41)
    at ServeCommand.initialize (/usr/local/lib/node_modules/@angular/cli/models/architect-command.js:134:55)
    at async ServeCommand.validateAndRun (/usr/local/lib/node_modules/@angular/cli/models/command.js:124:9)
    at async Object.runCommand (/usr/local/lib/node_modules/@angular/cli/models/command-runner.js:201:24)
    at async default_1 (/usr/local/lib/node_modules/@angular/cli/lib/cli/index.js:62:31) ``` 


0 个答案:

没有答案