jmona789
jmona789

Reputation: 2839

angular-cli keeps throwing Error: Cannot find module 'source-map'

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

Answers (1)

Andres
Andres

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

Related Questions