【问题标题】:node version manager: curl: (56) GnuTLS recv error (-54): Error in the pull function节点版本管理器: curl:(56)GnuTLS recv 错误(-54):拉函数中的错误
【发布时间】:2017-02-25 14:58:34
【问题描述】:

这是我在 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.
#### 

【问题讨论】:

    标签: node.js linux ubuntu curl nvm


    【解决方案1】:

    我也遇到过这个问题,我相信这一定是某些 GNU 或 curl 的问题

    我能够安装 nodejs 的方式是使用节点版本管理器

    第一步

    Run either:
    curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.5/install.sh | bash
    wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.5/install.sh | bash
    

    使用 wget 或 curl

    第二步

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

    nvm ls //should show if you have nodejs previous versions if none itll indicate
    

    第三步: 在今天安装最新版本的 nodejs 版本 8

    nvm install v8.6.0 
    

    检查最新版本并替换数字

    现在应该安装 nodejs

    node -v
    npm -v
    

    【讨论】:

      猜你喜欢
      • 2018-06-10
      • 1970-01-01
      • 1970-01-01
      • 2012-07-15
      • 2019-06-11
      • 1970-01-01
      • 1970-01-01
      • 2017-04-19
      • 1970-01-01
      相关资源
      最近更新 更多