linux下安装node
1.编译的方式安装
1
2
3
4
5
6
7
|
wget http:
//nodejs.org/dist/node-latest.tar.gz
tar zxvf node-latest.tar.gz
(cd into extracted folder: ex
"cd node-v0.10.12"
)
./configure
make & make install
make install
注意,./configure需要python2.
6
+
|
2.使用apt-get包管理安装
1
|
apt-
get
install nodejs
|
linux下卸载node
1.最简单粗暴的方式卸载
1
|
rm -r bin/node bin/node-waf
include
/node lib/node lib/pkgconfig/nodejs.pc share/man/man1/node.
1
|
2.使用apt-get卸载
1
|
apt-
get
autoremove nodejs
|