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
askariabdurrahman
1,610 PointsI keep getting an error with npm.
I have just reinstalled node on OSX El Capitan and I keep getting this error when ever I try to run the npm command:
module.js:328 throw err; ^
Error: Cannot find module 'minimatch' at Function.Module._resolveFilename (module.js:326:15) at Function.Module._load (module.js:277:25) at Module.require (module.js:354:17) at require (internal/module.js:12:17) at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/rimraf/node_modules/glob/glob.js:44:17) at Module._compile (module.js:398:26) at Object.Module._extensions..js (module.js:405:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Module.require (module.js:354:17) at require (internal/module.js:12:17)
2 Answers
Evandro Santos
4,998 PointsI suggest you re-install node using n or nvm, then update your npm and finally update your packages
Aaron HARPT
19,845 PointsYou need to install node and npm seperately, I am not sure if that is your problem.
Emre BaÅŸaran
7,654 PointsEmre BaÅŸaran
7,654 PointsYou might need to do a full Node/NPM uninstall and reinstall. See this node issue