CentOS下安装Node
安装依赖
yum install wget gcc gcc-c++ g++ autoconf autoconf2.13 automake make cmake m4 openssl openssl-devel curl libcurl-devel zlib-devel libxml2-devel gettext-devel gdbm-devel readline-devel ncurses-devel libffi-devel libyaml-devel libxslt-devel libicu-devel logrotate python-docutils krb5-devel
安装Node
//https://nodejs.org/en/download/
# wget https://nodejs.org/dist/v10.16.1/node-v10.16.1-linux-x64.tar.xz
# xz -d node-v10.16.1-linux-x64.tar.xz
# tar xf node-v10.16.1-linux-x64.tar -C /usr/local/
# mv /usr/local/node-v10.16.1-linux-x64 /usr/local/node
# ln -s /usr/local/node/bin/node /usr/bin/node
# node -v
# ln -s /usr/local/node/bin/npm /usr/bin/npm
# npm -v
# npm install -g yarn@1.17.3(yarn最新版本查询:https://github.com/yarnpkg/yarn/releases/)
# ln -s /usr/local/node/bin/yarn /usr/bin/yarn
# yarn -v
//https://yarnpkg.com/en/docs/install/#linux-tab
//注:yarn自动包含node和npm
# wget https://dl.yarnpkg.com/rpm/yarn.repo -O /etc/yum.repos.d/yarn.repo
# yum install yarn
版权声明:
作者:Joe.Ye
链接:https://www.appblog.cn/index.php/2023/02/25/install-node-under-centos/
来源:APP全栈技术分享
文章版权归作者所有,未经允许请勿转载。
THE END
0
二维码
打赏
海报
CentOS下安装Node
安装依赖
yum install wget gcc gcc-c++ g++ autoconf autoconf2.13 automake make cmake m4 openssl openssl-devel curl libcurl-devel zlib-devel libxml2-d……
文章目录
关闭
共有 0 条评论