1

我正在尝试在 Windows 上提供 Covalent 快速入门,但收到一个错误,表明没有这样的文件或目录,所有详细信息如下。

任何见解都非常感谢:)

在 Windows 10 上执行“ng serve”会导致以下错误消息,

ENOENT 中的错误:没有这样的文件或目录,stat 'C:\C\covalent\src\app\app.module.ts'

angular-cli 应用程序位于 'C:\C\covalent' 中,似乎 ng 服务进程以附加的 'C' 为前缀,但不确定它的来源。

所以输出如下,

**C:\covalent>ng serve ** Angular Live Development Server 正在监听 localhost:4200,在http://localhost:4200/上打开浏览器**

Date: 2018-07-20T04:29:03.325Z
Hash: 761529610e6f4f77920b
Time: 6136ms
chunk {main} main.js, main.js.map (main) 1.88 kB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 657 bytes 
[initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 5.22 kB [entry] 
[rendered]
chunk {scripts} scripts.js, scripts.js.map (scripts) 20.8 kB [rendered]
chunk {styles} styles.js, styles.js.map (styles) 794 kB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 325 kB [initial] [rendered]

 ERROR in ENOENT: no such file or directory, stat 
 'C:\C\covalent\src\app\app.module.ts'
 i 「wdm」: Failed to compile.**

我的环境如下,

C:\covalent>ng --version

Angular CLI: 6.0.1
Node: 8.11.3
OS: win32 x64
Angular: 6.0.2
... animations, cdk, common, compiler, compiler-cli, core, forms
... http, platform-browser, platform-browser-dynamic
... platform-server, router

Package Version
@angular-devkit/architect 0.6.8
@angular-devkit/build-angular 0.6.8
@angular-devkit/build-optimizer 0.6.8
@angular-devkit/core 0.6.8
@angular-devkit/schematics 0.6.1
@angular/cli 6.0.1
@angular/material 6.0.1
@ngtools/json-schema 1.1.0
@ngtools/webpack 6.0.8
@schematics/angular 0.6.1
@schematics/update 0.6.1
ng-packagr 2.4.2
rxjs 6.0.0
typescript 2.7.2
webpack 4.8.3
4

0 回答 0