Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
237 votes
16 answers
650k views

Checking version of angular-cli that's installed?

Is there a way to check the specific version of angular-cli that's installed globally on my machine? I'm in a Windows environment. *npm -v* and *node -v* only gives me the version of npm and node ...
bunndan's user avatar
  • 2,777
220 votes
46 answers
728k views

Message "the term 'ng' is not recognized as the name of a cmdlet"

Today, while working through some basic AngularJS introduction, I ran into a problem. I opened PowerShell to get going on the project. NPM worked. I was able to install Angular using: npm install -g @...
Wauna's user avatar
  • 2,466
209 votes
42 answers
446k views

ng: command not found while creating new project using angular-cli

Installed angular-cli globally using (npm install -g angular-cli) but when I'm trying to create project using ng new my-project it is throwing error: ng: command not found
lego's user avatar
  • 2,191
179 votes
9 answers
169k views

ERROR in The Angular Compiler requires TypeScript >=3.1.1 and <3.2.0 but 3.2.1 was found instead

I am getting this error ERROR in The Angular Compiler requires TypeScript >=3.1.1 and <3.2.0 but 3.2.1 was found instead. Seems like Typescript updated but the Angular Compiler doesn't like ...
Matt's user avatar
  • 34.7k
151 votes
29 answers
218k views

You seem to not be depending on "@angular/core". This is an error

I want to create an angular 2 App with angular cli I have written in the cmd: npm install angular-cli -g then: ng firstngapp but it show me an error when I write npm start ! I don't ...
web_mobile designer_dev's user avatar
108 votes
8 answers
138k views

How to Create a specific version of Angular Project using CLI?

My npm version is 5.5.1 and angular cli version is 6.2.1. When I try to create a new project using the command ng new Project_name then it is creating the latest version of Angular (in my case it is ...
Ravi's user avatar
  • 1,892
82 votes
3 answers
37k views

Difference between ng add <package name> vs npm install <package name> in angular 6

As Angular6 has been released, They have added a new command ng add . Can anyone tell me what will be the difference between existing command npm install <package> and ng add <package>
Nimish goel's user avatar
  • 2,721
74 votes
3 answers
52k views

How do I add Sass compilation in Angular CLI 6: angular.json?

I just created a new Angular project using the new Angular CLI 6.0, but I need to add Sass compilation to my project. I'm aware you can set a flag when you create a project, but my project is already ...
Esten's user avatar
  • 1,395
66 votes
9 answers
103k views

"You seem to not be depending on "@angular/core"."

When I try to build my project running the following command: ng build --environment=prod --aot=false --output-path="..." --base-href="..." You seem to not be depending on @angular/core. This is ...
Floriane's user avatar
  • 691
66 votes
3 answers
143k views

Install specific version of ng cli

I'm using angular 2.4.9 for my application development so I need to use specific version of ng cli instead of the latest one. I know the below command will install latest version of ng cli npm ...
Gangadhar Jannu's user avatar
66 votes
19 answers
64k views

Angular 2 Routing Does Not Work When Deployed to Http Server

I am going to develop a simple Angular 2 application. I have created a project with routing, using Angular CLI and added several components to the app using 'ng generate component ' command. Then I ...
kinath_ru's user avatar
  • 4,628
63 votes
8 answers
173k views

How to install npm package while offline?

I'm working on an offline network and want to install angular-cli using npm. I have a zip file of angular-cli and using the latest node and npm version. I'm using the command: npm install ./angular-...
Dorni's user avatar
  • 759
61 votes
13 answers
86k views

Unexpected token '.' when trying to run 'npm install'

I am trying to install the angular cli with 'npm install -g @angular/cli' and I am met with the following error: npm ERR! Unexpected token '.' npm ERR! A complete log of this run can be found in: npm ...
Thomas Stout's user avatar
53 votes
5 answers
41k views

Is there a way to specify angular version with the ng new command

I am creating a new Angular project and would like all the Angular dependencies to be from the stable 7th version. However, it seems that while running the ng new app command the Angular always ...
Saurabh Tiwari's user avatar
52 votes
11 answers
201k views

The command "npm run build -- --prod" exited with code 1 error

I'm developing an Asp.Net Core 2 and Angular 5 project in visual studio 2017. When I'm going to publish my project then the error 'The command "npm run build -- --prod" exited with code 1' show in ...
Iman Bahrampour's user avatar
45 votes
26 answers
185k views

ENOENT: no such file or directory, lstat '/Users/Desktop/node_modules'

An unhandled exception occurred: ENOENT: no such file or directory, lstat '/Users/Desktop/node_modules' See "/private/var/folders/3p/l_k1wk8n76v3cfwnxk0blx000000gn/T/ng- DF5EZ7/angular-errors....
shristy sinha's user avatar
45 votes
5 answers
26k views

How to upgrade minor version of angular using angular cli

This is a simple question but I'm struggling to find the answer via Google... I have an angular 4 project (created using angular cli) and would like to make use of http interceptors that have just ...
Simon's user avatar
  • 2,076
44 votes
12 answers
6k views

Angular CLI gives me "TypeError: callbacks[i] is not a function" when I "ng serve"

I literally just made a fresh installation of the Angular CLI in order to try it out and I don't have a clue on what's causing the following error on the command line: PC:cobros Fran$ ng serve ** ...
Franco Roura's user avatar
39 votes
8 answers
105k views

can't find compiler ngcc module after upgrading Angular and project

I've just upgraded Angular cli and one of my project from 7.0.7 to 7.1.0. I've followed this post and @Francesco Borzi's answer. now I've tried running my project using: ng serve --proxy-config proxy....
JSmith's user avatar
  • 4,780
39 votes
4 answers
72k views

Install Angular Unsupported Engine, OSX

I am reinstalling my MacBook. And I receive the following message when I install (npm install -g @angular/cli) angular. Any idea why? I suspect the nom version but I comes along with node... ...
Jean-Philippe M's user avatar
38 votes
7 answers
271k views

Unable to get Angular CLI version, though all the requirements are installed?

I am having difficulties doing anything with the Angular CLI. I have Node, NPM. and Angular all installed, when I run the which command in the terminal they all exist in my /user/local/bin This is my ...
Tanner's user avatar
  • 848
36 votes
6 answers
107k views

Error: Please, upgrade your dependencies to the actual version of core-js@3

I'm trying to run npm start but giving me error "An unhandled exception occurred: Could not find module "@angular-devkit/build-angular" I also tried to install it by using npm install @...
Never Stop Learning's user avatar
36 votes
18 answers
97k views

Npm ERR! code EPERM

I'm using node v6.11.2, npm v5.3.0 and angular/cli v1.2.7. I'm suddenly receiving the following error message for a majority of my npm installs. Never seen it before... mmeppiel@MC-LT-MMEPPIEL ...
Matthew Meppiel's user avatar
35 votes
5 answers
55k views

npm ERR! Invalid response body while trying to fetch http://registry.npmjs.org/accepts: Integrity verification failed for sha

npm ERR! Invalid response body while trying to fetch http://registry.npmjs.org/accepts: Integrity verification failed for <some key i probably shouldn't share> I get this error on my RPI4 (...
anton broos's user avatar
33 votes
4 answers
5k views

How should I resolve this error that occurs when using ng new? [duplicate]

I've installed the angular-cli with the command npm install -g @angular/cli. When I try to run the command ng new and create a new project, an error occurs: ⠙ Installing packages (npm)...npm WARN ...
Sipeng He's user avatar
  • 293
29 votes
1 answer
22k views

Package '@angular/core' is not a dependency. while updating angular 8 to angular 9

While updating angular 8 project to angular 9 , getting error ✔ Package successfully installed. Using package manager: 'npm' Collecting installed dependencies... Found 0 dependencies. Package '@...
Ashutosh Jha's user avatar
  • 16.1k
27 votes
5 answers
58k views

Cannot find module 'glob'

Tell me what extra information you need Im following a simple guide to activate my first angular 2 app and did the following actions on the clr: npm i -g angular-cli //(worked) ng new ponyracer ...
Stav Alfi's user avatar
  • 13.7k
24 votes
13 answers
76k views

internal/modules/cjs/loader.js:883 throw err

I've ran into an issue running npm start (I've attached the screenshot of the error bellow) on my Angular project. When I run the project using ng serve, everything is working fine. I have tried ...
Raheem Mohamed's user avatar
23 votes
2 answers
18k views

ng serve is not working after Angular 8 update

Error Could not find the implementation for builder @angular-devkit/build-angular:dev-server ng serve Could not find the implementation for builder @angular-devkit/build-angular:...
afeef's user avatar
  • 4,616
23 votes
5 answers
8k views

Keeping version numbers in sync in angular library project package.json files

When building an Angular Library application, is there an automated way to keep the root level package.json and the library application's package.json (e.g. under projects/my-library) file versions in ...
mindparse's user avatar
  • 6,905
22 votes
12 answers
39k views

Error when installing ng add @ng-bootstrap/ng-bootstrap

There comes an error when installing ng-bootstrap to my Angular-CLI(11.0.4). When ng add @ng-bootstrap/ng-bootstrap And my log file [error] Error: npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to ...
Damika's user avatar
  • 744
20 votes
8 answers
28k views

Unknown error: SyntaxError: Unexpected token 'export' on ng command

I'm trying to learn Angular I've followed the steps here: https://angular.io/guide/setup-local to get it setup on Ubuntu 18.04.5 LTS When I try to create a new project with ng new I get an error: $ ...
Jeff's user avatar
  • 480
18 votes
7 answers
39k views

Error: The loader in .css didn't return a string in Angular 12.1.1

I have created a new project but whenever I am compiling getting the 2 below error messages: Error: Module not found: Error: Can't resolve 'C:/Users/Avishek/Documents/practice/frontend/src/app/pages/...
avishekdr's user avatar
  • 1,024
18 votes
6 answers
26k views

Angular cli not using global npm install

I am new to npm and node, i am learning angular. In an angular cli project, whenever i run ng <<'keyword'>> command, i am getting below error as its unable to find global npm-modules folder. ...
prabu's user avatar
  • 1,277
18 votes
6 answers
81k views

How do you install angular-cli for windows 7

I am trying to install angular-cli for windows. I know the command is npm install -g angular-cli, however once I run this command I then try to do ng new however I get an error saying "ng is not a ...
tgrim90's user avatar
  • 339
16 votes
2 answers
13k views

When I run `ng new`, npm has a dependency problem [duplicate]

i ran ng new in terminal. I ended up getting an npm error new folder run ng new in new folder set the name and accept defaults (and use SCSS) watch it create files and error at the end ⠸ Installing ...
a1cd's user avatar
  • 24.1k
16 votes
5 answers
50k views

Add Bootstrap 4 to Angular 6 or Angular 7 application

I am working on Angular application using bootstrap 4. I need help related to scss adding in my angular application. My question is: Is the way of adding bootstrap 4 scss same in Angular 6 and ...
TAB's user avatar
  • 2,104
16 votes
1 answer
19k views

ERROR: Dependency @types/html2canvas must be explicitly allowed using the "allowedNonPeerDependencies" option

I have installed the html2canvas in my angular library project and, when I compile in production mode (running the ng build --prod command), I'm receiving the following error: ERROR: Dependency @...
Ricardo Rocha's user avatar
15 votes
2 answers
10k views

angular 7.0.5 ng new doesn't ask Would you like to add Angular routing?.... etc

Someone could guide me to know why I can not generate a new project with the new version of angular 7 Desired result: ng new firebase-auth ? Would you like to add Angular routing? No ? Which ...
Shogun's user avatar
  • 185
14 votes
5 answers
13k views

Upgrade from Angular 11 to 12 causes peer dependency conflict

I'm currently upgrading from Angular 11.2.14 to Angular 12.0.5 and I run into the following issue: npm ERR! Could not resolve dependency: npm ERR! dev @angular-devkit/build-angular@"12.0.5" ...
HelloWorld's user avatar
  • 2,183
14 votes
2 answers
1k views

Issue adding third-party (external ) js lib in angular5

I am working on to add jsplumb community js library version with the angular 5 application (Angular CLI: 1.6.1). With the first build without any configuration to tsconfig.json I get the following ...
Ameya's user avatar
  • 1,932
13 votes
3 answers
13k views

Install Node 6.9 on Ubuntu Zesty 17.04

I want to install a newest version of NodeJS on Ubuntu Zesty 17.04. But whether using apt-get or trying to download it from nodesource ppa, I always have the version 4.7.2. Apt-get sudo apt-get ...
Radouane ROUFID's user avatar
13 votes
6 answers
33k views

npm package seems to be corrupted

I am getting these warnings and then errors at the end. What is the fix? npm WARN deprecated [email protected]: core-js@<3.0 is no longer maintained and not recommended for usage due to the number of ...
Muzaffar Mahmood's user avatar
13 votes
12 answers
40k views

@angular-cli install fails with deprecated [email protected]: request has been deprecated (mac)

After updating node.js and npm to current LTS: node -v v12.16.0 npm -v 6.13.4 When I'm trying to install @angular-cli following the steps in the documentation, running npm install -g @angular/cli ...
Ben Mordechai's user avatar
13 votes
5 answers
15k views

Schematic "library" not found in collection "@schematics/angular"

I'm getting the following error when trying to create a library in angular cli Schematic "library" not found in collection "@schematics/angular". Error: Schematic "library" not found in collection "@...
Rafael Augusto's user avatar
13 votes
2 answers
5k views

How do I publish an Angular-CLI project as an NPM module?

I'm making my own Angular 2 module with Angular-CLI. How to prepare module to import? How do I publish the final output to NPM for use with other Angular2 projects?
piernik's user avatar
  • 3,647
12 votes
7 answers
25k views

"Port 4200 is already in use". Killing all the processes associated with 4200 did not work.

I'm trying to get angular running on my Mac OS X 10.11.3 El Capitan. I installed nodeJS and npm. Through npm I installed angular-cli. I created a new app via the command sudo ng new first-app I ...
Shoaib Ali C H's user avatar
12 votes
1 answer
5k views

Most modern way to externalize Angular 2 environment configuration?

I'm curious what the most modern way, as of April 2017, to build an Angular 2 app for deployment with external configuration? Following the Build Once Deploy Anywhere philosophy I'd like to figure ...
Sloloem's user avatar
  • 1,607
12 votes
6 answers
3k views

cannot find module css-loader while doing ng build -prod with [email protected]

I have following package.json configuration "dependencies": { "@angular/common": "2.2.1", "@angular/compiler": "2.2.1", "@angular/core": "2.2.1", "@angular/forms": "2.2.1", "@angular/http": "2.2.1", "...
Gan's user avatar
  • 945
11 votes
9 answers
45k views

Why is npm throwing the error "checksum failed while installing @angular/cli"?

I'm using node v6.11.5 and npm 3.10.10 and 64-bit OS, and while installing @angular/cli I'm getting the following error: C:\WINDOWS\system32>npm install -g @angular/cli npm ERR! Windows_NT 6.3....
snegi's user avatar
  • 171

1
2 3 4 5
14