2

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?

1
  • have you tried, npm install -g @angular/cli ? Say 'y' to everything and then, enter your project and you'll be able to use 'ng'. Tested right now. Commented Mar 12, 2019 at 9:29

1 Answer 1

3

I tried a lot of things and ended up just giving up and running npm install source-map which solved it for me.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.