Reputation: 361
I'm trying to create a new Angular CLI project stub as instructed in the IntelliJ docs here Generating an Angular application stub using Angular CLI. One of the mandatory fields asks for the Angular CLI package directory.
I have no idea what this is or where to find this.
Upvotes: 15
Views: 33917
Reputation: 877
Yes, all above answers are correct if anyone wants to see screenshot folder location here it is :
C:\Users\SWAPNIL\AppData\Roaming\npm\node_modules@angular\cli
Upvotes: 1
Reputation: 8240
I work on windows, find all the modules installed globally by npm at:
> c:/users/<user-name>/appData/roaming/npm
> c:/users/<user-name>/appData/roaming/npm-cache
To Be exact for angular-cli:
> c:/users/<user-name>/appData/roaming/npm-cache/@angular/cli
Upvotes: 0
Reputation: 361
Angular CLI field value should be something similar to: C:\Users[user name here]\AppData\Roaming\npm\node_modules\@angular\cli as @lena mentioned
The problem: I had an old version of angular-cli installed. Even though I followed the Intellij docs for creating an Angular stub project, and installed the new @angular/cli via npm install, the new cli directory was not present.
The solution: I followed the instruction from updating-angular-cli and this installed the updated @angular\cli directory which then allowed Intellij IDEA to correctly build the Angular module. You have to uninstall old versions before installing the new cli. I was then able to point the Angular CLI field to the above path and the module generated correctly.
Upvotes: 9
Reputation: 93748
As it's written in https://www.jetbrains.com/help/idea/2017.1/using-angular.html#d461255e133, you need to install angular-cli module first: npm install -g @angular/cli
.
Once the package is installed, specify a path to it in Angular CLI field. In your environment, it should be smth like C:\Users\andyrh3\AppData\Roaming\npm\node_modules\@angular\cli
Upvotes: 5