I have created a fresh new asp.net core 2.0 angular project.
I am working on mac os x. I have opened a terminal in project subfolder and typed:
$ npm install
The demo skelton project works fine.
Now i want to work with angular cli.
In my terminal, which is still in project subfolder:
$ npm install -g @angular/cli $ npm install --save-dev @angular/cli
Now, if i move to components subfolder and if i want to generate an angular component:
$ cd ClientApp/app/components/
$ ng g component composant1
I get this error:
Error: Cannot find module 'rxjs/operators'
Now, on the same computer, if a create a fresh new angular project (without asp.net core):
$ ng new projettemp
My ng g component command works fine in this project.
So i suppose this is an asp.net core issue...
** EDIT **
If i type ng version in my project directory, i get the same error.
If i type ng version outside my project directory, i get 1.6.4
ng version
– zgue