问答详情
源自:2-2 Hello Angular CLI

项目找不到anguglar .json 怎么调

Local workspace file ('angular.json') could not be found.

Error: Local workspace file ('angular.json') could not be found.

    at WorkspaceLoader._getProjectWorkspaceFilePath (C:\Users\Administrator\AppData\Roaming\npm\node_modules\@angular\cli\models\workspace-loader.js:37:19)

    at WorkspaceLoader.loadWorkspace (C:\Users\Administrator\AppData\Roaming\npm\node_modules\@angular\cli\models\workspace-loader.js:24:21)

    at ServeCommand._loadWorkspaceAndArchitect (C:\Users\Administrator\AppData\Roaming\npm\node_modules\@angular\cli\models\architect-command.js:180:32)

    at ServeCommand.<anonymous> (C:\Users\Administrator\AppData\Roaming\npm\node_modules\@angular\cli\models\architect-command.js:47:25)

    at Generator.next (<anonymous>)

    at C:\Users\Administrator\AppData\Roaming\npm\node_modules\@angular\cli\models\architect-command.js:7:71

    at new Promise (<anonymous>)

    at __awaiter (C:\Users\Administrator\AppData\Roaming\npm\node_modules\@angular\cli\models\architect-command.js:3:12)

    at ServeCommand.initialize (C:\Users\Administrator\AppData\Roaming\npm\node_modules\@angular\cli\models\architect-command.js:46:16)

    at Object.<anonymous> (C:\Users\Administrator\AppData\Roaming\npm\node_modules\@angular\cli\models\command-runner.js:87:23)


提问者:qq_梦徒_1 2018-06-06 21:12

个回答

  • 慕前端8664132
    2018-06-21 22:14:38

    https://stackoverflow.com/questions/49810580/error-local-workspace-file-angular-json-could-not-be-found

    试试这个吧,用谷歌翻译下就行。