# Cockpit-file-sharing won't build

**URL:** <https://forum.45homelab.com/t/cockpit-file-sharing-wont-build/921>\
**Category:** Software & Applications\
**Created:** [December 25, 2023, 4:30am UTC](https://forum.45homelab.com/t/cockpit-file-sharing-wont-build/921 "2023-12-25T04:30:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![SpringerSpaniel](https://forum.45homelab.com/letter_avatar_proxy/v4/letter/s/db5fbb/32.png) [@SpringerSpaniel](https://forum.45homelab.com/u/SpringerSpaniel)\
**Post date:** [December 25, 2023, 4:30am UTC](https://forum.45homelab.com/t/cockpit-file-sharing-wont-build/921/1 "2023-12-25T04:30:18Z")

</div>

```auto
Building file-sharing
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

```

Looks like `cockpit-css` can’t be found? I was following the instructions on GitHub which essentially just say to clone the repository and then `make install`.

---

<div class="post-metadata">

**Author:** ![Hutch-45Drives](https://forum.45homelab.com/user_avatar/forum.45homelab.com/hutch-45drives/32/64_2.png) [@Hutch-45Drives](https://forum.45homelab.com/u/Hutch-45Drives)\
**Post date:** [December 27, 2023, 12:40pm UTC](https://forum.45homelab.com/t/cockpit-file-sharing-wont-build/921/2 "2023-12-27T12:40:37Z")

</div>

Hi @SpringerSpaniel, We do not develop or control the cockpit project. may I ask what OS you are trying to install this on?

---

<div class="post-metadata">

**Author:** ![SpringerSpaniel](https://forum.45homelab.com/letter_avatar_proxy/v4/letter/s/db5fbb/32.png) [@SpringerSpaniel](https://forum.45homelab.com/u/SpringerSpaniel)\
**Post date:** [December 28, 2023, 5:15am UTC](https://forum.45homelab.com/t/cockpit-file-sharing-wont-build/921/3 "2023-12-28T05:15:42Z")

</div>

Debian. But the issue isn’t with Cockpit, it’s with installing the 45Drives File Sharing plugin.

> **[GitHub - 45Drives/cockpit-file-sharing: A Cockpit plugin to easily manage...](https://github.com/45Drives/cockpit-file-sharing)**
>
> A Cockpit plugin to easily manage samba and NFS file sharing. - GitHub - 45Drives/cockpit-file-sharing: A Cockpit plugin to easily manage samba and NFS file sharing.

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?

---

<div class="post-metadata">

**Author:** ![Hutch-45Drives](https://forum.45homelab.com/user_avatar/forum.45homelab.com/hutch-45drives/32/64_2.png) [@Hutch-45Drives](https://forum.45homelab.com/u/Hutch-45Drives)\
**Post date:** [December 28, 2023, 12:35pm UTC](https://forum.45homelab.com/t/cockpit-file-sharing-wont-build/921/4 "2023-12-28T12:35:46Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![SpringerSpaniel](https://forum.45homelab.com/letter_avatar_proxy/v4/letter/s/db5fbb/32.png) [@SpringerSpaniel](https://forum.45homelab.com/u/SpringerSpaniel)\
**Post date:** [December 29, 2023, 4:39am UTC](https://forum.45homelab.com/t/cockpit-file-sharing-wont-build/921/5 "2023-12-29T04:39:59Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![Hutch-45Drives](https://forum.45homelab.com/user_avatar/forum.45homelab.com/hutch-45drives/32/64_2.png) [@Hutch-45Drives](https://forum.45homelab.com/u/Hutch-45Drives)\
**Post date:** [December 29, 2023, 1:52pm UTC](https://forum.45homelab.com/t/cockpit-file-sharing-wont-build/921/6 "2023-12-29T13:52:10Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![orix](https://forum.45homelab.com/letter_avatar_proxy/v4/letter/o/59ef9b/32.png) [@orix](https://forum.45homelab.com/u/orix)\
**Post date:** [December 29, 2023, 4:00pm UTC](https://forum.45homelab.com/t/cockpit-file-sharing-wont-build/921/7 "2023-12-29T16:00:10Z")

</div>

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.
