[英]I can not install node-libcurl module
我想在Ubuntu上安裝node-libcurl模塊。 要安裝,我使用以下命令:
npm install node-libcurl --save
但我面臨這個問題:
node-pre-gyp ERR! 試圖下載(404): https : //github.com/JCMais/node-libcurl/releases/download/v1.1.0/node_libcurl-v1.1.0-node-v57-linux-x64.tar.gz
node-pre-gyp ERR! 找不到node-libcurl@1.1.0和node@8.0.0(node-v57 ABI)的預構建二進制文件(使用node-gyp回退到源代碼編譯)
gyp ERR! 配置錯誤
gyp ERR! 堆棧錯誤:
gyp
失敗,退出代碼:1gyp ERR! 在ChildProcess.onCpExit堆棧(/home/myfolder/node_modules/node-gyp/lib/configure.js:308:16)
gyp ERR! 堆棧在emitTwo(events.js:125:13)
gyp ERR! 在ChildProcess.emit堆棧(events.js:213:7)
gyp ERR! Process.ChildProcess._handle.onexit的堆棧(internal / child_process.js:197:12)
gyp ERR! 系統Linux 4.2.0-42-通用
gyp ERR! 命令“/ usr / local / bin / node”“/ home / myfolder / node_modules/node-gyp/bin/node-gyp.js”“configure”“--fallback-to-build”“ - module = / home /myfolder/node_modules/node-libcurl/lib/binding/node_libcurl.node“” - module_name = node_libcurl“” - module_path = / home / myfolder / node_modules / node-libcurl / lib / binding“
gyp ERR! cwd / home / myfolder / node_modules / node-libcurl
gyp ERR! node -v v8.0.0
gyp ERR! node-gyp -v v3.5.0
gyp ERR! 不好
node-pre-gyp ERR! 構建錯誤
node-pre-gyp ERR! 堆棧在emitTwo(events.js:125:13)
node-pre-gyp ERR! 在ChildProcess.emit堆棧(events.js:213:7)
node-pre-gyp ERR! 在maybeClose堆棧(internal / child_process.js:887:16)
node-pre-gyp ERR! Process.ChildProcess._handle.onexit的堆棧(internal / child_process.js:208:5)
node-pre-gyp ERR! 系統Linux 4.2.0-42-通用
node-pre-gyp ERR! node -v v8.0.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.32
node-pre-gyp ERR! 不好
錯誤的ERR! 代碼ELIFECYCLE
錯誤的ERR! 錯誤1
錯誤的ERR! node-libcurl@1.1.0 install:
node-pre-gyp install --fallback-to-build
錯誤的ERR! 退出狀態1
錯誤的ERR!
錯誤的ERR! 在node-libcurl@1.1.0安裝腳本失敗。
任何人都可以幫助解決這個問題嗎?
過了一段時間,我意識到libcurl沒有安裝在機器上。 我之前沒有意識到,因為錯誤消息沒有提到它,所以不清楚。
我解決了:
apt-get install libcurl4-openssl-dev
和:
npm install node-libcurl --build-from-source
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.