mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-26 01:26:00 +03:00
[GH-ISSUE #938] Documentation improvement: npm is not listed as a dependency in Ubuntu/Debian install instructions #3601
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#3601
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @myself248 on GitHub (Feb 28, 2022).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/938
Describe the bug
Npm isn't listed as a dependency, but installation fails if you don't have it.
Steps to reproduce
It's a fresh install on an Ubuntu 20.04 (dist-upgraded from 18.04) machine that's never had archivebox on it before, so the repro steps are exactly the install steps in the "package manager / apt / ubuntu/debian" section of the front page of archivebox.org.
Screenshots or log output
Installing with apt as per instructions, everything looked normal up to this npm error:
There is no node_modules to delete, so that suggestion doesn't work. Finally I just ran "npm" to see if it would do anything, like maybe there's an npm version command whose output might be relevant here, and realized I didn't have npm installed:
After doing that, I reran archivebox init --setup and it installed two of the three, but singlefile still fails:
manually running singlefile --version results in the following:
ArchiveBox version
this was taken before installing npm:
after installing npm, and rerunning
archivebox init --setup, output looks the same except readability and mercury are valid, only singlefile fails:@pirate commented on GitHub (Mar 13, 2022):
This is somewhat expected, Ubuntu's strict version pinning for apt packages makes it so the default npm install is too old to run the newest single-file version. You have to choose, do you want a newer node install and the latest and greatest single-file (add the apt repo for the latest node.js versions), or the old node + old singlefile (install them manually).
I can add a workaround to the installer script to install a recent node version / nodeenv but it's starting to be like a house of cards getting it working cross-platform on the latest versions for everything.
@mobilelifeful commented on GitHub (Apr 7, 2022):
@pirate Can you please elaborate a bit more on "do you want a newer node install and the latest and greatest single-file (add the apt repo for the latest node.js versions), or the old node + old singlefile (install them manually)."? by giving a working solution to install them? (that you think is the best)
"same" env. set up of ubuntu.
just found this tool, but can't get it working. Thank you in advance.
@pirate commented on GitHub (Jan 31, 2023):
Follow these instructions to install the latest version of NodeJS + NPM on Ubuntu/Debian based OS's https://github.com/nodesource/distributions#debinstall
npm install -g npmI also added a note to the README instructions as you suggested: https://github.com/ArchiveBox/ArchiveBox/blob/dev/README.md#-package-manager-setup