npm-kubo
npm-kubo copied to clipboard
Install failed on nixos
I tried npm install kubo
on nixos 23.11.
npm ERR! code 1
npm ERR! path /home/romain/Projets/rust/identia/node_modules/kubo
npm ERR! command failed
npm ERR! command sh -c node src/post-install.js
npm ERR! https://dist.ipfs.tech/kubo/versions
npm ERR! Found /home/romain/.cache/npm-kubo/kubo_v0.25.0_linux-amd64.tar.gz
npm ERR! Verifying kubo_v0.25.0_linux-amd64.tar.gz.sha512
npm ERR! OK (c77a332237744b53e505a7904e9969c97825394c81bb8f348f00d355444dd558178741077e449cff494c857f74d22111dc3ea4fdf078896d9a9c7abaa85ee8c5)
npm ERR! Unpacked /home/romain/Projets/rust/identia/node_modules/kubo
npm ERR! Linking /home/romain/Projets/rust/identia/node_modules/kubo/kubo/ipfs to /home/romain/Projets/rust/identia/node_modules/kubo/bin/ipfs
npm ERR! Error: ipfs binary failed: Error: spawnSync /home/romain/Projets/rust/identia/node_modules/kubo/bin/ipfs ENOENT
npm ERR! at link (/home/romain/Projets/rust/identia/node_modules/kubo/src/download.js:220:11)
npm ERR! at module.exports (/home/romain/Projets/rust/identia/node_modules/kubo/src/download.js:248:10)
npm ERR! at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Directory /home/romain/Projets/rust/identia/node_modules/kubo
doesn't exist after installation failed.
I found kubo_v0.25.0_linux-amd64.tar.gz
in /home.romain/.cache/npm-kubo
.
I extracted it using tar -xvf kubo_v0.25.0_linux-amd64.tar.gz
and when I tried bash ./kubo/ipfs
,
I got the error ./kubo/ipfs: ./kubo/ipfs : cannot execute binary file