【问题标题】:Installation error - Protocol "https" not supported or disabled in libcurl安装错误 - libcurl 中不支持或禁用协议“https”
【发布时间】:2019-07-27 04:42:21
【问题描述】:

我尝试使用以下命令在 RHEL EC2 上安装 node-parquet (https://www.npmjs.com/package/node-parquet):

git clone https://github.com/mvertes/node-parquet.git
cd node-parquet
git submodule update --init --recursive
npm install

并得到错误:

--- LOG END ---
         error: downloading 'https://github.com/apache/arrow/archive/0e21f84c2fc26dba949a03ee7d7ebfade0a65b81.tar.gz' failed
         status_code: 1
         status_string: "Unsupported protocol"
         log:
         --- LOG BEGIN ---
         Protocol "https" not supported or disabled in libcurl

我试过了:

wget https://curl.haxx.se/download/curl-7.64.0.tar.gz
tar -xzf curl-7.64.0.tar.gz
cd curl-7.64.0
./configure --with-ssl 
make 
make install # (if not root, use sudo before command)

并且安装似乎很好,但出现了相同的问题(相同的错误)。

我需要先卸载当前的 CURL 还是有什么问题?

【问题讨论】:

    标签: node.js ssl curl npm


    【解决方案1】:

    可能 npm 仍在使用 curl 的第一个版本。两种选择

    • 卸载第一个 curl
    • 设置PATH变量选择第二个版本

    【讨论】:

    • 你有例子吗?
    • 尝试/usr/bin/curl https://github.com/apache/arrow/archive/0e21f84c2fc26dba949a03ee7d7ebfade0a65b81.tar.gz如果不起作用尝试/usr/local/bin/curl https://github.com/apache/arrow/archive/0e21f84c2fc26dba949a03ee7d7ebfade0a65b81.tar.gz以查看导致问题的版本
    猜你喜欢
    • 2019-08-06
    • 2012-03-24
    • 2017-01-10
    • 1970-01-01
    • 2020-11-10
    • 2017-09-14
    • 2020-01-22
    • 2017-09-08
    • 2020-04-09
    相关资源
    最近更新 更多