You are not logged in.

#1 2022-01-01 23:42:45

enigmatic_jihad
Member
Registered: 2020-04-14
Posts: 26

[SOLVED] npm ERR! An unknon git error occurred

Hello everyone, I'm not used to npm or use it for any purpose either. I've been trying to install

webtorrent

. But all I'm getting is this:

npm ERR! code 128
npm ERR! An unknown git error occurred
npm ERR! command git --no-replace-objects ls-remote ssh://git@github.com/webtorrent/http-node.git
npm ERR! git@github.com: Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2022-01-01T23_37_44_528Z-debug-0.log

Please help me with this guys.

Last edited by enigmatic_jihad (2022-01-02 00:47:26)

Offline

#2 2022-01-02 00:13:58

loqs
Member
Registered: 2014-03-06
Posts: 18,987

Re: [SOLVED] npm ERR! An unknon git error occurred

You ran some command as root and it failed?  https://bbs.archlinux.org/viewtopic.php?id=57855
Did you try the AUR packages providing webtorrent and have them all fail before you started building it manually?

Offline

#3 2022-01-02 00:25:59

enigmatic_jihad
Member
Registered: 2020-04-14
Posts: 26

Re: [SOLVED] npm ERR! An unknon git error occurred

I'm really sorry for that. I've ran

sudo npm install webtorrent -g

And here is the full log https://pastebin.com/fpgp8uE9

The AUR packages only have webtorrent-desktop. It's doesn't enable the `webtorrent` command, which I'm planning to use in a shell script.

Offline

#4 2022-01-02 00:42:52

loqs
Member
Registered: 2014-03-06
Posts: 18,987

Re: [SOLVED] npm ERR! An unknon git error occurred

Try https://aur.archlinux.org/packages/webtorrent-cli/ it creates /usr/bin/webtorrent as a symlink to /usr/lib/webtorrent-cli/bin/cmd.js

Offline

#5 2022-01-02 00:46:31

enigmatic_jihad
Member
Registered: 2020-04-14
Posts: 26

Re: [SOLVED] npm ERR! An unknon git error occurred

loqs wrote:

Try https://aur.archlinux.org/packages/webtorrent-cli/ it creates /usr/bin/webtorrent as a symlink to /usr/lib/webtorrent-cli/bin/cmd.js

I didn't know it exist. Thank you very much. I think I should just keep my distance from npm.

Offline

Board footer

Powered by FluxBB