Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

Thomas Couillard
Thomas Couillard
19,121 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!