-
Notifications
You must be signed in to change notification settings - Fork 1.2k
lacking installation instructions for libp2p and prometheus when installing ipfs -g #3241
Comments
Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review.
Finally, remember to use https://discuss.ipfs.io if you just need general support. |
You are trying to install as a superuser, which there's rarely a good reason for. When running post-install scripts (like If you add the --unsafe-perm flag to the install command, npm will not drop to an unprivileged account, but you'll also be running the post-install scripts as root which is a big security risk. Instead you should either use a node version manager like nvm or n which will install everything in your home directory, or if you have node installed globally, make sure your current user can write to If all this is too much, pre-built Docker images are available. |
thank you for informing me about nvm (I'm actually glad I don't have to sudo)
I just hope the warning there doesn't mean there's issues >_> god npm makes me feel like a child staying with a bad sitter while their mother goes into service for years |
If you don't like npm you can try yarn? Anyway, glad you got to the bottom of it. |
How do you mean the mtime is not preserved? $ jsipfs add --preserve-mtime foo.txt
added QmPTKh7c6t5Z8ghXnabJiKUQHNab1X6Fi8yEVDw4ngLAX2 foo.txt
$ jsipfs files stat /ipfs/QmPTKh7c6t5Z8ghXnabJiKUQHNab1X6Fi8yEVDw4ngLAX2
QmPTKh7c6t5Z8ghXnabJiKUQHNab1X6Fi8yEVDw4ngLAX2
Size: 454
CumulativeSize: 478
ChildBlocks: 0
Type: file
Mode: -rw-r--r--
Mtime: 25 Aug 2020, 21:44:01 BST <----- mtime is preserved |
Version: current at the time of this issue
Platform:
Linux tcll-compact 4.15.0-112-generic js-ipfs-unixfs #113~16.04.1-Ubuntu SMP Fri Jul 10 04:37:08 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Severity:
Critical or High (installation fails)
Description:
ran
sudo npm install ipfs --global
andsudo npm install -g ipfs
got:
Steps to reproduce the error:
1:
sudo npm install -g ipfs
2: wait for error
I'm not sure exactly what the error is asking me to do as this is my first time actually using npm...
I'm not a fan of JS being anything more than a web script (ActiveX died for a good reason and shouldn't've been reborn), but I need a feature specific to js-ipfs
EDIT:
btw, if you have a portable .appimage or .tar.gz anywhere that I can just download and run, I'd prefer that method instead of this nightmare of an installation procedure ;)
(
sudo apt-get install npm
was broken to the point the initial upgrade broke npm so badly that purged reinstallation didn't even fix npm to a runnable state)^ got it working through an unsupported curl link and upgraded from there.
The text was updated successfully, but these errors were encountered: