openzim / node-libzim

Libzim binding for Node.js: read/write ZIM files in Javascript
https://www.npmjs.com/package/@openzim/libzim
GNU General Public License v3.0
27 stars 11 forks source link

Error by install on macOS Catalina 10.15 #51

Closed eranhr closed 3 years ago

eranhr commented 4 years ago

Hi, running "npm i libzim" and the result is an error. it is looking for https://github.com/cscott/node-libzim/releases/download/1.0.0/zim-v1.0.0-node-v79-darwin-x64.tar.gz which seems to be wrong (the /download/ section)

Thanks

terminal output:

[Sun Oct 25 16:01:43] [wiki] [227]$   npm i libzim

> libzim@1.0.0 install /Users/**********/myProjects/wiki/node_modules/libzim
> node-pre-gyp install --fallback-to-build

node-pre-gyp info it worked if it ends with ok
node-pre-gyp verb cli [
node-pre-gyp verb cli   '/usr/local/Cellar/node/13.13.0/bin/node',
node-pre-gyp verb cli   '/Users/**********/myProjects/wiki/node_modules/libzim/node_modules/.bin/node-pre-gyp',
node-pre-gyp verb cli   'install',
node-pre-gyp verb cli   '--fallback-to-build'
node-pre-gyp verb cli ]
node-pre-gyp info using node-pre-gyp@0.6.29
node-pre-gyp info using node@13.13.0 | darwin | x64
node-pre-gyp verb command install []
node-pre-gyp info check checked for "/Users/**********/myProjects/wiki/node_modules/libzim/lib/binding/node-v79-darwin-x64/zim.node" (not found)
node-pre-gyp http GET https://github.com/cscott/node-libzim/releases/download/1.0.0/zim-v1.0.0-node-v79-darwin-x64.tar.gz
node-pre-gyp http 404 https://github.com/cscott/node-libzim/releases/download/1.0.0/zim-v1.0.0-node-v79-darwin-x64.tar.gz
node-pre-gyp ERR! Tried to download: https://github.com/cscott/node-libzim/releases/download/1.0.0/zim-v1.0.0-node-v79-darwin-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for libzim@1.0.0 and node@13.13.0 (node-v79 ABI) (falling back to source compile with node-gyp) 
node-pre-gyp http Pre-built binary not available for your system, looked for https://github.com/cscott/node-libzim/releases/download/1.0.0/zim-v1.0.0-node-v79-darwin-x64.tar.gz 
kelson42 commented 4 years ago

Readme was misleading. Fixed, see https://github.com/openzim/node-libzim/commit/6ea9c52cbde3ed44a87ba908a2f267baf0258988#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5

eranhr commented 4 years ago

still not working... install halt at this point:

[Mon Oct 26 16:18:20] [zimlib] [259]$  npm i openzim/libzim ⸨░░░░░░░░░░░░░░░░░░⸩ ⠧ rollbackFailedOptional: verb npm-session 2e2c3cd9ee4cdfc0

kelson42 commented 4 years ago

@eranhr What is exactly your Operating System?

eranhr commented 4 years ago

Catalina 10.15.7

kelson42 commented 4 years ago

@rgaudin Would you be able please to check if you have a similar behaviour?

eranhr commented 3 years ago

I thought I found a way to install node-libzim but it still reporting an error (on two different macOS computers). When I run npm i openzim/libzim I get this error:

[Sat Nov 07 12:01:28] [libzim] [1]$   npm i openzim/libzim
npm ERR! premature close

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/**********/.npm/_logs/2020-11-08T12_02_50_054Z-debug.log

when I run npm i libzim I get this errors:


1. [Sun Nov 08 14:02:50] [libzim] [2]$   npm i libzim
2. 
3. > libzim@1.0.0 install /Users/**********/wiki/node_modules/libzim
4. > node-pre-gyp install --fallback-to-build
5. 
6. node-pre-gyp info it worked if it ends with ok
7. node-pre-gyp verb cli [
8. node-pre-gyp verb cli   '/usr/local/Cellar/node/13.13.0/bin/node',
9. node-pre-gyp verb cli   '/Users/**********/wiki/node_modules/libzim/node_modules/.bin/node-pre-gyp',
10. node-pre-gyp verb cli   'install',
11. node-pre-gyp verb cli   '--fallback-to-build'
12. node-pre-gyp verb cli ]
13. node-pre-gyp info using node-pre-gyp@0.6.29
14. node-pre-gyp info using node@13.13.0 | darwin | x64
15. node-pre-gyp verb command install []
16. node-pre-gyp info check checked for "/Users/**********/wiki/node_modules/libzim/lib/binding/node-v79-darwin-x64/zim.node" (not found)
17. node-pre-gyp http GET https://github.com/cscott/node-libzim/releases/download/1.0.0/zim-v1.0.0-node-v79-darwin-x64.tar.gz
18. node-pre-gyp http 404 https://github.com/cscott/node-libzim/releases/download/1.0.0/zim-v1.0.0-node-v79-darwin-x64.tar.gz
19. node-pre-gyp ERR! Tried to download: https://github.com/cscott/node-libzim/releases/download/1.0.0/zim-v1.0.0-node-v79-darwin-x64.tar.gz 
20. node-pre-gyp ERR! Pre-built binaries not found for libzim@1.0.0 and node@13.13.0 (node-v79 ABI) (falling back to source compile with node-gyp) 
21. node-pre-gyp http Pre-built binary not available for your system, looked for https://github.com/cscott/node-libzim/releases/download/1.0.0/zim-v1.0.0-node-v79-darwin-x64.tar.gz 
22. node-pre-gyp verb command build [ 'rebuild' ]
23. node-pre-gyp ERR! Tried to download: https://github.com/cscott/node-libzim/releases/download/1.0.0/zim-v1.0.0-node-v79-darwin-x64.tar.gz 
24. node-pre-gyp ERR! Pre-built binaries not found for libzim@1.0.0 and node@13.13.0 (node-v79 ABI) (falling back to source compile with node-gyp) 
25. node-pre-gyp http Connection closed while downloading tarball file 
26. node-pre-gyp verb command build [ 'rebuild' ]

please notice line 17,18 and 19 in the console log output.

thanks!

kelson42 commented 3 years ago

Please open a new ticket and show the log for installing openzin/libzim.