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

I found the perfect NPM and installed it, but when I require it, it can't find the npm. (Project 6)

So I found the perfect NPM for Project 6 simply called 'content_scraper'. Well, I installed it and if I look inside the node_modules directory, one of the subdirectories is called 'content_scraper'.

I've tried a few methods: var Scraper = require("content_scraper"); var Scraper = require("./content_scraper"); var Scraper = require("./node_modules/content_scraper");

None of these can find the npm.

I see people are using other npm's like 'node-scrapy', but I have no clue how to scrape a site. We were never taught this.