Reputation: 2839
So I installed the angular-cli using npm install @angular-devkit/build-angular
but every time I try and use the ng
command I get this error: Error: Cannot find module 'source-map'
even trying ng version
throws the error. I also trying installing it using npm install angualt-cli
but that didnt work either. Anyone know how to fix this issue?
Upvotes: 2
Views: 6207
Reputation: 198
I tried a lot of things and ended up just giving up and running npm install source-map which solved it for me.
Upvotes: 3