hide_kichiの情報

気になる情報を適当にアップしていきます

【ANGULAR】起動エラーの場合

ANGULARをDOSプロンプトで

NG SERVERを起動します。が以下のエラーの場合、


C:\data\test0\src>cd ..

C:\data\test0>cd ..

C:\data>ng server
The specified command ("server") is invalid. For a list of available options,
run "ng help".

Did you mean "serve"?

>これは正常に起動できてない。ディレクトリーの違い・セットアップ環境に間違いがある場合です。

以下は正常に起動したケースです。

 

C:\data\test9>ng server

Your global Angular CLI version (7.0.5) is greater than your local
version (1.0.6). The local Angular CLI version is used.

To disable this warning use "ng config -g cli.warnings.versionMismatch false".
** NG Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200 **
Hash: 1daa09d7cd7553ee1638
Time: 25177ms
chunk {0} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 195 kB {4} [initial] [rendered]
chunk {1} main.bundle.js, main.bundle.js.map (main) 16.4 kB {3} [initial] [rendered]
chunk {2} styles.bundle.js, styles.bundle.js.map (styles) 10.6 kB {4} [initial] [rendered]
chunk {3} vendor.bundle.js, vendor.bundle.js.map (vendor) 2.82 MB [initial] [rendered]
chunk {4} inline.bundle.js, inline.bundle.js.map (inline) 0 bytes [entry] [rendered]
webpack: Compiled successfully.


正常な起動を確認します。
ブラウザー
localhost:4200
ブラウザー上でANGULARプログラムが起動します。

f:id:hide_kichi:20190209093453p:plain

ANGULAR-CAP1

以上