我正在尝试在Windows上投放Covalent Quickstart,但收到一条错误消息,指示没有此类文件或目录,所有详细信息在下面。
任何见识都非常感激:)
在Windows 10上执行“ ng serve”会导致以下错误消息,
ENOENT中的错误:没有这样的文件或目录,stat'C:\ C \ covalent \ src \ app \ app.module.ts'
angular-cli应用程序驻留在“ C:\ C \ covalent”中,似乎还有一个额外的“ C”以ng serve进程为前缀,但不确定该源于何处。
所以输出如下,
** C:\ covalent> ng服务 ** 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