I had to spend some hours to find out how to install the node-inspector on my RPi.
For others to have it faster done here how I did it:
Note:
To prevent typing 'sudo' all the time I logged to my RPi as root and updated my RPi using:
Then I searched for the latest distribution of NODE on
http://nodejs.org/dist/ by looking for a file
ending with
*.-linux-arm-pi.tar.gz. As per 23.06.2014 the latest build was found in the v0.10.26 folder. So following commands was executed on RPi:
Code: Select all
cd /opt
wget http://nodejs.org/dist/v0.10.26/node-v0.10.26-linux-arm-pi.tar.gz
tar -xvzf node-v0.10.26-linux-arm-pi.tar.gz
mv node-v0.10.26-linux-arm-pi node
Then I had to set the NODE_JS_HOME variable to the directory where I un-tarred NODE, and added the bin dir to my PATH; In my case I have modified
/etc/profile file and added following two lines before the line
export PATH:
Code: Select all
NODE_JS_HOME=/opt/node
PATH=$PATH:$NODE_JS_HOME/bin
export PATH
I have rebooted my RPi just to be sure updates and new PATH is applied correctly and there is no problem. After logging again as root into my RPi, I checked if the installation was okay or not by typing:
which returned in my case: v0.10.26, or typing:
which returned in my case: 1.4.3
Then I installed node-inspector using following command:
This takes a while till it gets done. At the end I've started the node-inspector by typing:
As a result I got:
Node Inspector v0.7.4
Visit http://127.0.0.1:8080/debug?port=8183 to start debugging.
Now I could start debugging on my PC using Google Chrome and opening following link:
http://<IP_Address_of_RPi>:8080/debug?port=8183
That's it