$npm install -g @angular/cli@latest
$ng --version
$ ng new my-first-app initially strict:NOT routing Not
$ cd my-first-app/
$ ng serve
to use bootstrap CSS framework, before installing quit running server. below command will install bootstarp locally in this project, not globally.
$ npm install --save bootstrap@3
"styles": [
"node_modules/bootstrap/dist/css/bootstrap.min.css",
"src/styles.css"
]
path of bootstrap file: bootstrap/dist/css/bootstrap.min.css
$ npm install @angular/http@latest
$ npm fund
$ npm install -g npm
=================================================================
$ ng generate component servers
$ng g c servers
$ ng g component recipes --skipTests=true
$ ng g component recipes/recipe-list --skipTests=true
=================================================================
$ cd 'your project name...'
npm install
ng serve
=================================================================
$ npm cache clean --force
$ npm clean-install
$ npm i --no-package-lock
$ npm install --package-lock-only
npm i --save @angular/cdk --no-package-lock
npm cache clean --force npm install -g @angular/cli
============ error npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated request@2.88.2: request has been deprecated, see request/request#3142 npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. npm WARN deprecated tslint@6.1.3: TSLint has been deprecated in favor of ESLint. Please see palantir/tslint#4534 for more information.