This should work for both the BeagleBone and the BeagleBone Black. Tested on BeagleBone Black rev B. Prerequisites- opkg update
- opkg install python-shell
- opkg install python-compiler
- opkg install python-misc
- opkg install python-multiprocessing
- opkg install python-compression
- opkg install python-simplejson
Build and install new version- Go to http://nodejs.org/download/ and copy the link to the source code
- Open a terminal window on the BeagleBone
- Create a temp directory, e.g. ~/nodejs
- cd ~/nodejs
- Download the source using the source code link, e.g.: wget http://nodejs.org/dist/v0.10.28/node-v0.10.28.tar.gz
- Unpack the source: tar zxvf node-v0.10.28.tar.gz
- cd node-v0.10.28
- ./configure --without-snapshot --prefix=/usr
- make
- make install
And setup the node path to modules for all users and processes: - echo "export NODE_PATH=/usr/lib/node_modules" > /etc/profile.d/nodejs.sh
Finally, you can delete the temporary directory and the .tar.gz file.
Verify the version installed with the command: node --version
|