Just setting up my raspberry pi as node.js server. Did a clean install of Raspberian
then installed node
if I do node -v it says: v0.10.25
then installed npm
if I do npm --version it says: 1.1.4
if I do then npm install express it fails and as the reason why it says
npm ERR! Required: {"node":">= 0.8.0"} npm ERR! Actual: {"npm":"1.1.4","node":"0.6.19"}
Any idea what I am doing wrong?
Looks like a bad intall of nodejs.
Try to:
Remove nodejs:
then, get the python-s-p package:
Add add the chris-lea ppa:
Finally, install again
Everything should work fine now.
I used this manual and version 0.11.3 and got success. http://doctorbin.tumblr.com/post/53991508909/how-to-install-the-latest-version-of-nodejs-npm-and