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 trialLai Boon Hui
5,886 Pointsnode-inspector fail to install.
From the logs npm ERR! Failed at the v8-profiler@5.2.11 install script 'node-pre-gyp install - -fallback-to-build'.
I am using Windows7 64bit npm@2.11.3 node version v0.12.7
I have done my due diligence with Google but no working solution so far. Do share it here if you have a solution to this problem.
4 Answers
jason chan
31,009 Pointsnode install node-inspector@0.7.4 -g
node-debug src/app.js
To launch it
there is no space node -debug
arshin
17,770 PointsAdditionally, node-inspector requires python 2.7, therefore if you have python 3+ installed, you must install python 2.7 and update the system environment variables to include python 2.7 and not python 3.
Iain Simmons
Treehouse Moderator 32,305 PointsOr you can use the --python
option to use a different version of Python when installing a module:
npm install node-inspector@0.7.4 -g --python=C:\Python27\python.exe
Or wherever Python 2.7 is installed...
Guillermo Kuhl
23,460 PointsTL;DR : npm install -g node-inspector@0.7.4
Hi There,
I am on windows 8 and had the same problem.
I found the answer here: https://github.com/node-inspector/node-inspector/issues/516
If you scroll down, you see Tiendq installs an older version of it: v0.7.4.
You can do this with the command: npm install -g node-inspector@0.7.4
Note, I wasn't sure if I needed to install python, because I was getting errors relating to Python as well, but I went ahead and did that, and included python in my system PATH variable.
To install python with the help of Treehouse: https://teamtreehouse.com/library/setting-up-a-local-python-environment/installing-python-and-python-libraries-locally/installing-python-3-on-windows .
and you can simply find out how to adjust your system path with a Google search
Lai Boon Hui
5,886 Pointsthanks everyone, your solution worked :)
jason chan
31,009 PointsYAY!!!!!!!!!!!!!
Allison Walker
17,137 PointsAllison Walker
17,137 PointsIt's really difficult to tell in the video that there's no space between "node" and "-debug", because it wraps to another line.