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! While you're at it, check out some resources Treehouse students have shared here.

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 npm Basics (retiring) Installing Packages with npm Installing Global Packages

jenyufu
jenyufu
3,311 Points

Where is the ajax file? I don't see the ajax file that the instructor uses for his server.

The file isn't including in the teacher's notes either.

2 Answers

Stephen Gheysens
Stephen Gheysens
11,935 Points

jenyufu that is correct, it looks like the files in Andrew Chalkley 's ajax_example folder isn't available for students.

As he mentioned in the video, all of that is in the directory is a small app with AJAX calls. Normally, html files served from the 'file:///' extension will not execute jQuery - and that's why we globally install the http-server package. The main takeaway from this lesson is that once you install a package globally (with 'npm install [packageName] -g'), you can call its functions from any directory. He might not have included the app to avoid distracting from this lesson.