Node.js 节点版本管理器:curl:(56)GnuTLS recv error(-54):pull函数中的错误

Node.js 节点版本管理器:curl:(56)GnuTLS recv error(-54):pull函数中的错误,node.js,linux,ubuntu,curl,nvm,Node.js,Linux,Ubuntu,Curl,Nvm,这是我在ubuntu 16.04中运行命令nvm install 4.6.0时得到的输出 ############################################################### 88.0% curl: (56) GnuTLS recv error (-54): Error in the pull function. Binary download from https://nodejs.org/dist/v4.6.0/node-v4.6

这是我在ubuntu 16.04中运行命令nvm install 4.6.0时得到的输出

###############################################################           88.0%
curl: (56) GnuTLS recv error (-54): Error in the pull function.
Binary download from https://nodejs.org/dist/v4.6.0/node-v4.6.0-linux-x64.tar.xz failed, trying source.
grep: /home/swap/.nvm/.cache/bin/node-v4.6.0-linux-x64/node-v4.6.0-linux-x64.tar.xz: No such file or directory
Provided file to checksum does not exist.
Binary download failed, trying source.
#### 

我也经历过这个问题,我相信这一定是某个GNU或curl的问题

我安装nodejs的方法是使用node版本管理器

步骤1

使用wget或curl

步骤2

关闭当前端子并打开另一个端子

nvm ls //should show if you have nodejs previous versions if none itll indicate
步骤3: 今天安装最新版本的nodejs,其版本为8

nvm install v8.6.0 
检查最新版本并更换编号

现在应该安装nodejs了

node -v
npm -v

我也经历过这个问题,我相信这一定是某个GNU或curl的问题

我安装nodejs的方法是使用node版本管理器

步骤1

使用wget或curl

步骤2

关闭当前端子并打开另一个端子

nvm ls //should show if you have nodejs previous versions if none itll indicate
步骤3: 今天安装最新版本的nodejs,其版本为8

nvm install v8.6.0 
检查最新版本并更换编号

现在应该安装nodejs了

node -v
npm -v