We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[root@lin-67-107 tmp]# lsb-release -a -bash: lsb-release: command not found [root@lin-67-107 tmp]# yum install -y redhat-lsb [root@lin-67-107 tmp]# lsb_release -a LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch Distributor ID: CentOS Description: CentOS release 6.5 (Final) Release: 6.5 Codename: Final [root@lin-67-107 tmp]# wget https://nodejs.org/dist/v4.3.1/node-v4.3.1-linux-x64.tar.xz [root@lin-67-107 tmp]# tar -xvf node-v4.3.1-linux-x64.tar.xz [root@lin-67-107 tmp]# cp node-v4.3.1-linux-x64.tar.xz /usr/local/ [root@lin-67-107 local]# cd /usr/local [root@lin-67-107 local]# ls bin etc games include lib lib64 libexec node-v4.3.1-linux-x64.tar.xz sbin share src [root@lin-67-107 local]# ls bin etc games include lib lib64 libexec node-v4.3.1-linux-x64 node-v4.3.1-linux-x64.tar.xz sbin share src [root@lin-67-107 local]# ln -s node-v4.3.1-linux-x64 node [root@lin-67-107 local]# ls bin games lib libexec node-v4.3.1-linux-x64 sbin src etc include lib64 node node-v4.3.1-linux-x64.tar.xz share [root@lin-67-107 local]# vi /etc/profile # 在unset -f pathmunge之前加入如下两行 export NODE_HOME=/usr/local/node pathmunge $NODE_HOME/bin root@lin-67-107 local]# node -v v4.3.1 [root@lin-67-107 local]# npm -v 2.14.12
参考:http://zshou.is-programmer.com/tag/nodejs http://www.cnblogs.com/no7dw/archive/2012/07/07/2580307.html
The text was updated successfully, but these errors were encountered:
sudo apt-get install xz-utils unxz xxx.xz
Sorry, something went wrong.
No branches or pull requests
参考:http://zshou.is-programmer.com/tag/nodejs
http://www.cnblogs.com/no7dw/archive/2012/07/07/2580307.html
The text was updated successfully, but these errors were encountered: