angular-cli

Error setting up new project with angular/cli

吃可爱长大的小学妹 提交于 2020-07-23 07:12:30
问题 I am new to npm and Angular 2, I am trying to setup a new Angular 2 project using angular/cli. I am currently running: Node v8.9.3 npm v5.6.0 Windows 10 First, I ran npm install -g @angular/cli which seemed to install just fine. Then I went to the folder where I wanted to start my project, ran ng new my-app but kept getting this error. npm WARN deprecated angular-cli@1.0.0-beta.22-1: angular-cli has been renamed to @angular/cli. Please update your dependencies. npm WARN deprecated tough

Error setting up new project with angular/cli

ぐ巨炮叔叔 提交于 2020-07-23 07:11:41
问题 I am new to npm and Angular 2, I am trying to setup a new Angular 2 project using angular/cli. I am currently running: Node v8.9.3 npm v5.6.0 Windows 10 First, I ran npm install -g @angular/cli which seemed to install just fine. Then I went to the folder where I wanted to start my project, ran ng new my-app but kept getting this error. npm WARN deprecated angular-cli@1.0.0-beta.22-1: angular-cli has been renamed to @angular/cli. Please update your dependencies. npm WARN deprecated tough

Error setting up new project with angular/cli

自闭症网瘾萝莉.ら 提交于 2020-07-23 07:10:06
问题 I am new to npm and Angular 2, I am trying to setup a new Angular 2 project using angular/cli. I am currently running: Node v8.9.3 npm v5.6.0 Windows 10 First, I ran npm install -g @angular/cli which seemed to install just fine. Then I went to the folder where I wanted to start my project, ran ng new my-app but kept getting this error. npm WARN deprecated angular-cli@1.0.0-beta.22-1: angular-cli has been renamed to @angular/cli. Please update your dependencies. npm WARN deprecated tough

'ng add @angular/material' produces error, why?

醉酒当歌 提交于 2020-07-22 10:03:48
问题 When I try to install angular material components by using the ng add command I get an package already installed error. $ ng add @angular/material Skipping installation: Package already installed Cannot find module '@angular-devkit/schematics/tasks' Error: Cannot find module '@angular-devkit/schematics/tasks' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15) at Function.Module._load (internal/modules/cjs/loader.js:506:25) at Module.require (internal/modules/cjs

How to generate Angular.json file

こ雲淡風輕ζ 提交于 2020-07-19 16:23:36
问题 My current application was in Angular 4 without Angular CLI. So I never had Angualr.json file or Angular-cli.json file. Now we want to generate that Angular CLI or angular.json file. Because this file is not available it is not taking any of the ng commands like ng serve or ng g c testing How can I generate the file without using ng new command because ng new will create a new project which I don't want. I want to support my existing project. Few notes on my project : 1. We are launching

stylePreprocessorOptions angular 8

你离开我真会死。 提交于 2020-07-18 04:34:07
问题 I am following this to add importable scss files through stylePreprocessorOptions in Angular 8 but I keep getting the error that it is not being found. Any input is apreciated, this neat trick is very useful! below is my angular.json { "$schema": "./node_modules/@angular/cli/lib/config/schema.json", "version": 1, "newProjectRoot": "projects", "projects": { "thebearcottages-app": { "projectType": "application", "schematics": { "@schematics/angular:component": { "style": "scss", "skipTests":

How to downgrade Angular CLI version?

自古美人都是妖i 提交于 2020-07-16 16:35:09
问题 I'm new in Angular 4 and I am getting this error, Your global Angular CLI version (6.0.1) is greater than your local version (1.4.1). The local Angular CLI version is used. Can you please help me solving this ? 回答1: npm uninstall -g @angular/cli npm cache clean npm install -g @angular/cli@1.4.1 回答2: Quick fix : npm uninstall -g @angular/cli npm cache clean npm install -g @angular/cli@1.4.1 Explanation : If you want remove this warning, then you can downgrade your global angular-cli

global uninstall angular cli

别来无恙 提交于 2020-07-09 17:06:34
问题 Hi I've tried to uninstall global @angular/cli but I still can use ng -v and it reports warning: Your global Angular CLI version (1.7.0) is greater than your local I tried: npm uninstall -g angular-cli npm uninstall -g @angular/cli npm cache verify But ng -v still report the warning that my global is greater than local. Please help. Thank you in advance! 回答1: Use this command to uninstall the angular-cli ,it will update the dependencies and also do try to clear the cache once. npm uninstall -

global uninstall angular cli

筅森魡賤 提交于 2020-07-09 17:01:31
问题 Hi I've tried to uninstall global @angular/cli but I still can use ng -v and it reports warning: Your global Angular CLI version (1.7.0) is greater than your local I tried: npm uninstall -g angular-cli npm uninstall -g @angular/cli npm cache verify But ng -v still report the warning that my global is greater than local. Please help. Thank you in advance! 回答1: Use this command to uninstall the angular-cli ,it will update the dependencies and also do try to clear the cache once. npm uninstall -

Angular Install ng-bootstrap: Cannot find module '@schematics/angular/utility/project'

无人久伴 提交于 2020-07-09 06:48:50
问题 The system throws error during ng-bootstrap installation: [error] Error: Cannot find module '@schematics/angular/utility/project' Require stack: - C:\angular\gis-semantics-framework\node_modules\@ng-bootstrap\ng-bootstrap\schematics\ng-add\index.js - C:\angular\gis-semantics-framework\node_modules\@angular-devkit\schematics\tools\export-ref.js - C:\angular\gis-semantics-framework\node_modules\@angular-devkit\schematics\tools\index.js - C:\angular\gis-semantics-framework\node_modules\@angular