- which node
- # should output /usr/bin/node
- cd /usr/bin
- rm -rf bin/node bin/node-waf include/node lib/node lib/pkgconfig/nodejs.pc share/man/man1/node.1
- rm -f /usr/bin/node
- #remove npm
- npm rm npm -g
- rm -rf ~/.npm
- cd /opt/
- #download nodejs version 0.8.23
- wget http://nodejs.org/dist/v0.8.23/node-v0.8.23.tar.gz
- #extract
- tar -xvf node-v0.8.23.tar.gz
- rm -f node-v0.8.23.tar.gz
- cd node-v0.8.23
- ./configure
- #build and install
- make
- make install
- #create symlinks
- ln -s /usr/local/bin/node /usr/bin/node
- #check version
- node -v
uninstall nodejs completely and install old lagacy version 0.8.23 script on nodejs
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment