Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Angular Basics Services in Angular Dependency Injection

Mads Andersen
Mads Andersen
8,401 Points

No http module

I don't have a http module inside my @angular folder in the node modules, so I naturally cannot import it. How do I get one?

1 Answer

Tom Couillard
Tom Couillard
19,782 Points

Hey Mads, in your terminal at the project root enter:

npm install @angular/http@2.4.2 --save

as Andrew instructed in the previous video and you should be all set. I ran into this issue when I neglected to specify version to npm. Refresh your fs in VScode and you should see it under ./node_modules/@angular/http .

Let me know if you are still running into issues!

Happy coding,


hey I need help still. In the console in the browser its showing there is no provider for Http. I tried to download npm install angular and it showed 6 low, 3 high and 1 critical vulnerabilities. PLEASE HELP!