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 trialMichael Davis
17,071 PointsError: Cannot find module '/usr/local/lib/node_modules/node-inspector/node_modules/v8-debug/build/debug/v0.7.7/node-v48-
hello good people!
looking for some insight here on this error message. i have been trying various google searches and not really seeing a solution...
i am running OSX El Capitan up to date nodemon v. 1.10.2 node-inspector v. 0.12.8 node v. 6.3.1
i am seeing this error:
Error: Cannot find module '/usr/local/lib/node_modules/node-inspector/node_modules/v8-debug/build/debug/v0.7.7/node-v48-darwin-x64/debug.node'
when i am trying to run nodemon and node-inspector...
run node-inspector run nodemon in separate terminal window refresh node-inspector at http://127.0.0.1:8080/?port=5858 which produces the error above any help out there?
thanks many times over in advance
4 Answers
Andrew Chalkley
Treehouse Guest TeacherHi Michael!
I would encourage to to uninstall any node dependancies like node-inspector and reinstall them. It looks like npm thinks it's there when it's not!
Fernando Boza
25,384 PointsHey there have you tried
A) checking your dependencies to see if they installed correctly? you can check with npm init -g --depth=0
B) did you install them globally?
Michael Davis
17,071 Pointshi fernando!
thanks!
yes i believe i did install globally, but i am checking them as you suggested.
let me do a bit more digging and i'll get back.
i did notice that i had to do some workarounds to install nodemon and or node-inspector due to upgrades to OSX El Capitan
the procedures int he video didn't work
Michael Davis
17,071 Pointsthanks Andrew and Fernando!
uninstalling literally everything related to node and reinstalling was the way to go. i also installed nvm which proved to be the difference as I could choose the version to run which ensured things worked.
cheers!