3

远程Linux环境中安装NodeJS

 3 years ago
source link: https://tcpgnl.com/remote-linux-install-nodejs.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

远程Linux环境中安装NodeJS

2021年3月9日 158点热度 0人点赞 0条评论

title: 远程Linux环境中安装NodeJS
author: TCPGNL

time: 2021-03-09

其实本文和远程远程没有太大的关系, 本文主要记录下远程安装NodeJS的环境。

nvm安装NodeJS

1. 安装NVM

https://github.com/nvm-sh/nvm 找到相应的指令 并在Linux中安装

wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash #我安装的时候采用0.37.2
source ~/.bash_profile

2. 列出当前的版本

nvm list-remote

3. 安装相应版本

nvm install v14.16.0

4. 测试nodejs环境

node -v
本作品采用 知识共享署名 4.0 国际许可协议 进行许可

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK