ng serve-ENOENT:没有这样的文件或目录

时间:2018-09-13 08:31:16

标签: angular npm angular-cli angular-cli-v6

按照本教程操作:Build a Basic CRUD App with Angular 7.0 and Spring Boot 2.1

克隆该存储库(角度大于6)

<ion-item class="item" text-center no-lines *ngFor="let item of token let i=index">
  Time:{{item.client[0].sessionDetails.sessions[{{item.sessionNumber}}].startTime}}
</ion-item>

收到此错误:

git clone https://github.com/oktadeveloper/okta-spring-boot-2-angular-7-example.git

cd okta-spring-boot-2-angular-7-example/client

npm install

ng serve

我的棱角版本:

ENOENT: no such file or directory, open 'C:\C\angular\okta\okta-spring-boot-2-angular-7-example\client\node_modules\@angular\cli\commands\version.json'

P / s:即使在项目文件夹中键入ng --version Your global Angular CLI version (6.2.1) is greater than your local version (6.2.0-beta.3). The local Angular CLI version is used. To disable this warning use "ng config -g cli.warnings.versionMismatch false". ENOENT: no such file or directory, open 'C:\C\angular\okta\okta-spring-boot-2-angular-7-example\client\node_modules\@angular\cli\commands\version.json' Error: ENOENT: no such file or directory, open 'C:\C\angular\okta\okta-spring-boot-2-angular-7-example\client\node_modules\@angular\cli\commands\version.json' at Object.fs.openSync (fs.js:663:18) at Object.fs.readFileSync (fs.js:568:33) at findCommand (C:\angular\okta\okta-spring-boot-2-angular-7-example\client\node_modules\@angular\cli\models\command-runner.js:302:31) at Object.<anonymous> (C:\angular\okta\okta-spring-boot-2-angular-7-example\client\node_modules\@angular\cli\models\command-runner.js:80:31) at Generator.next (<anonymous>) at C:\angular\okta\okta-spring-boot-2-angular-7-example\client\node_modules\@angular\cli\models\command-runner.js:14:71 at new Promise (<anonymous>) at __awaiter (C:\angular\okta\okta-spring-boot-2-angular-7-example\client\node_modules\@angular\cli\models\command-runner.js:10:12) at Object.runCommand (C:\angular\okta\okta-spring-boot-2-angular-7-example\client\node_modules\@angular\cli\models\command-runner.js:51:12) at C:\angular\okta\okta-spring-boot-2-angular-7-example\client\node_modules\@angular\cli\lib\cli\index.js:38:58 ,我仍然会收到错误消息

有什么想法吗?

0 个答案:

没有答案