question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug: Installing missing 3 recommended dependencies never completes

See original GitHub issue
$ npm install --prefix . "git+https://github.com/ArchiveBox/ArchiveBox.git"
npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated request-promise@4.2.6: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated core-js@2.6.12: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
[                  ] / reify:single-file: timing reifyNode:node_modules/core-js Completed in 2177ms

npm install --prefix . "git+https://github.com/ArchiveBox/ArchiveBox.git" does never complete and hangs at the last line above.

1 archivebox bla 2 cd bla 3 npm install --prefix . "git+https://github.com/ArchiveBox/ArchiveBox.git"

screenshot-20210403-203038

ArchiveBox version

ArchiveBox v0.5.4
Cpython Linux Linux-5.11.10-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i7-4790K_CPU_@_4.00GHz-with-glibc2.2.5 x86_64 (not in Docker)

[i] Dependency versions:
 √  ARCHIVEBOX_BINARY     v0.5.4          valid     /home/asdf/.python/bin/archivebox
 √  PYTHON_BINARY         v3.8.8          valid     /usr/bin/python3.8
 √  DJANGO_BINARY         v3.1.3          valid     /home/asdf/.python/lib/python3.8/site-packages/django/bin/django-admin.py
 √  CURL_BINARY           v7.74.0         valid     /usr/bin/curl
 √  WGET_BINARY           v1.20.3         valid     /usr/bin/wget
 √  NODE_BINARY           v15.11.0        valid     /usr/bin/node
 X  SINGLEFILE_BINARY     ?               invalid   single-file
 X  READABILITY_BINARY    ?               invalid   readability-extractor
 X  MERCURY_BINARY        ?               invalid   mercury-parser
 √  GIT_BINARY            v2.26.3         valid     /usr/bin/git
 √  YOUTUBEDL_BINARY      v2021.04.01     valid     /home/asdf/.python/bin/youtube-dl
 √  CHROME_BINARY         v90.0.4430.51   valid     /usr/bin/google-chrome-beta
 √  RIPGREP_BINARY        v0.10.0         valid     /usr/local/bin/rg

[i] Source-code locations:
 √  PACKAGE_DIR           23 files        valid     /home/asdf/.python/lib/python3.8/site-packages/archivebox
 √  TEMPLATES_DIR         3 files         valid     /home/asdf/.python/lib/python3.8/site-packages/archivebox/templates

[i] Secrets locations:
 -  CHROME_USER_DATA_DIR  -               disabled
 -  COOKIES_FILE          -               disabled

[i] Data locations:
 √  OUTPUT_DIR            9 files         valid     /mnt/unsort/archive/www
 √  SOURCES_DIR           108 files       valid     ./sources
 √  LOGS_DIR              0 files         valid     ./logs
 √  ARCHIVE_DIR           87 files        valid     ./archive
 √  CONFIG_FILE           81.0 Bytes      valid     ./ArchiveBox.conf
 √  SQL_INDEX             892.0 KB        valid     ./index.sqlite3

[!] Warning: Missing 3 recommended dependencies
    ! SINGLEFILE_BINARY: single-file (unable to detect version)
      Hint: npm install --prefix . "git+https://github.com/ArchiveBox/ArchiveBox.git"
            or archivebox config --set SAVE_SINGLEFILE=False to silence this warning

    ! READABILITY_BINARY: readability-extractor (unable to detect version)
      Hint: npm install --prefix . "git+https://github.com/ArchiveBox/ArchiveBox.git"
            or archivebox config --set SAVE_READABILITY=False to silence this warning

    ! MERCURY_BINARY: mercury-parser (unable to detect version)
      Hint: npm install --prefix . "git+https://github.com/ArchiveBox/ArchiveBox.git"
            or archivebox config --set SAVE_MERCURY=False to silence this warning

thx

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dunnnocommented, Apr 5, 2021

Well, that was it, that did the trick, thanks a bunch 😃

1reaction
piratecommented, Apr 5, 2021

Arg, it turns out this is a difference in npm behavior between mac and linux. On mac it will install all 3, on linux it will overwrite the previous node_modules each time. 😡

On linux you’ll have to use --save instead of --no-save:

rm -Rf package.json package-lock.json node_modules
npm install --save --no-audit --no-fund --loglevel=error git+https://github.com/gildas-lormeau/SingleFile.git
npm install --save --no-audit --no-fund --loglevel=error git+https://github.com/ArchiveBox/readability-extractor.git
npm install --save --no-audit --no-fund --loglevel=error @postlight/mercury-parser
Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation fails for @types/<dependency_name> packages
In the case of removing a dependency, it appears that the entire node_modules/@types directory is deleted when one dependency is removed, ...
Read more >
DNF fails to install packages if any package is not available.
Summary: DNF fails to install packages if any package is not available. Hello, this is not a bug; it's a feature.
Read more >
NPM doesn't install module dependencies - Stack Overflow
At first, I tried to manually install the missing dependency using npm instasll <module> but npm complained and gave error that there is...
Read more >
Newcomers » 2020-06 "dependencies " errors - Eclipse
Cannot complete the install because some dependencies are not satisfiable. Software being installed: a.jre.javase 10.0.0
Read more >
How to fix the dependency error when installing a package? It ...
You need to first Update and Upgrade APT. Run sudo apt-get update && sudo apt-get upgrade . Then clean unneccessary packages with sudo ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found