npm --prefix file-sharing install
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@45drives%2fcockpit-css - Not found
npm ERR! 404
npm ERR! 404 '@45drives/cockpit-css@^0.1.12' is not in this registry.
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2023-12-25T04_29_13_946Z-debug-0.log
make: *** [Makefile:80: file-sharing/dist/index.html] Error 1
cockpit-css can’t be found? I was following the instructions on GitHub which essentially just say to clone the repository and then
Hi @SpringerSpaniel, We do not develop or control the cockpit project. may I ask what OS you are trying to install this on?
Debian. But the issue isn’t with Cockpit, it’s with installing the 45Drives File Sharing plugin.
I’m following the instructions here, and
npm is pulling from its registry, it complains that a 45drives/cockpit-css is missing? If I’m somehow wrong and this is nothing to do with 45Drives then I apologize but it looks like something’s horked in packages you own on the NPM Registry?
HI @SpringerSpaniel, Our tools are only developed and tested on Rocky 8 and Ubuntu 20.04.
The cpckpit-css package is what we use on these OSs to deplay and brand the file-sharing tab.
I’m just curious but why don’t you add our Ubuntu focal repo and install the packages from that instead of making them from source?
On GitHub there’s a section called Generic Install and since I didn’t match either of the other options, I went with that, and then it didn’t work
I haven’t personally installed it with that method. I do know that the ubuntu deb packages do work on native deb OS as it supports focal versions of the packages which Debian should.
Can you try adding our repo and installing from that?
Following. I’m finding myself in more of a headache with Rocky than I have ever in my Ubuntu boxes. Debian based distros just feel like home for me though as it’s what I “grew up on”. I too just don’t really want to run 20.04 but may end up using Ansible to write my configs for things like SMB and NFS where needed and using Nextcloud and Minio where I can instead.
Did you have the dependencies it asks for?
# debian-like cockpit attr coreutils libc-bin nfs-kernel-server samba samba-common-bin systemd winbind gawk
Judging by the errors, it looks like NPM is pointing at their repo? That seems odd as per Hutch that package is Cockpit’s and should have been installed with Cockpit. I wonder if you could repoint it to the cockpit repo.