cabal-club / cabal-cli

Terminal client for Cabal, the p2p chat platform.

Home Page:https://cabal.chat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Could not install - sodium-native related error

dpriskorn opened this issue · comments

$ sudo npm install --global cabal
[sudo] lösenord för x: 
/usr/bin/cabal -> /usr/lib/node_modules/cabal/cli.js

> sodium-native@3.2.0 install /usr/lib/node_modules/cabal/node_modules/@hyperswarm/dht/node_modules/sodium-native
> node-gyp-build "node preinstall.js" "node postinstall.js"


> sodium-native@3.2.0 install /usr/lib/node_modules/cabal/node_modules/@hyperswarm/hypersign/node_modules/sodium-native
> node-gyp-build "node preinstall.js" "node postinstall.js"


> sodium-native@3.2.0 install /usr/lib/node_modules/cabal/node_modules/blake2b-universal/node_modules/sodium-native
> node-gyp-build "node preinstall.js" "node postinstall.js"


> sodium-native@3.2.0 install /usr/lib/node_modules/cabal/node_modules/dht-rpc/node_modules/sodium-native
> node-gyp-build "node preinstall.js" "node postinstall.js"


> fd-lock@1.1.1 install /usr/lib/node_modules/cabal/node_modules/fd-lock
> node-gyp-build


> sodium-native@3.2.0 install /usr/lib/node_modules/cabal/node_modules/hypercore-crypto/node_modules/sodium-native
> node-gyp-build "node preinstall.js" "node postinstall.js"


> sodium-native@2.4.9 install /usr/lib/node_modules/cabal/node_modules/sodium-native
> node-gyp-build "node preinstall.js" "node postinstall.js"

libtoolize:   error: Failed to create 'build-aux'
./configure: rad 5: ./configure: Filen eller katalogen finns inte
/usr/lib/node_modules/cabal/node_modules/sodium-native/preinstall.js:119
    if (err) throw err
             ^

Error: ./configure exited with 127
    at ChildProcess.<anonymous> (/usr/lib/node_modules/cabal/node_modules/sodium-native/preinstall.js:149:25)
    at ChildProcess.emit (events.js:314:20)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sodium-native@2.4.9 install: `node-gyp-build "node preinstall.js" "node postinstall.js"`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the sodium-native@2.4.9 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-08-21T17_13_14_372Z-debug.log

commented

What version of node are you using?

14 I think. Newest in parabola repo which follows arch.

Sometimes the newest version of Node has trouble with our dependency stack for a little while. I recommend trying Node 12, which is definitely supported.

Installed nvm and ran:
$ nvm install 12
Downloading and installing node v12.18.3...
Downloading https://nodejs.org/dist/v12.18.3/node-v12.18.3-linux-x64.tar.xz...
####################################################################################################################################################### 100,0%
Computing checksum with sha256sum
Checksums matched!
Now using node v12.18.3 (npm v6.14.6)
Creating default alias: default -> 12 (-> v12.18.3)
egil@parabola:/src/js/cabal-desktop$ node --version
v12.18.3
egil@parabola:
/src/js/cabal-desktop$ sudo npm install --global cabal
[sudo] lösenord för egil:
/home/egil/.nvm/versions/node/v12.18.3/bin/cabal -> /home/egil/.nvm/versions/node/v12.18.3/lib/node_modules/cabal/cli.js

sodium-native@3.2.0 install /home/egil/.nvm/versions/node/v12.18.3/lib/node_modules/cabal/node_modules/@hyperswarm/dht/node_modules/sodium-native
node-gyp-build "node preinstall.js" "node postinstall.js"

sodium-native@3.2.0 install /home/egil/.nvm/versions/node/v12.18.3/lib/node_modules/cabal/node_modules/@hyperswarm/hypersign/node_modules/sodium-native
node-gyp-build "node preinstall.js" "node postinstall.js"

sodium-native@3.2.0 install /home/egil/.nvm/versions/node/v12.18.3/lib/node_modules/cabal/node_modules/blake2b-universal/node_modules/sodium-native
node-gyp-build "node preinstall.js" "node postinstall.js"

sodium-native@3.2.0 install /home/egil/.nvm/versions/node/v12.18.3/lib/node_modules/cabal/node_modules/dht-rpc/node_modules/sodium-native
node-gyp-build "node preinstall.js" "node postinstall.js"

fd-lock@1.1.1 install /home/egil/.nvm/versions/node/v12.18.3/lib/node_modules/cabal/node_modules/fd-lock
node-gyp-build

sodium-native@3.2.0 install /home/egil/.nvm/versions/node/v12.18.3/lib/node_modules/cabal/node_modules/hypercore-crypto/node_modules/sodium-native
node-gyp-build "node preinstall.js" "node postinstall.js"

sodium-native@2.4.9 install /home/egil/.nvm/versions/node/v12.18.3/lib/node_modules/cabal/node_modules/sodium-native
node-gyp-build "node preinstall.js" "node postinstall.js"

utp-native@2.2.1 install /home/egil/.nvm/versions/node/v12.18.3/lib/node_modules/cabal/node_modules/utp-native
node-gyp-build

leveldown@5.6.0 install /home/egil/.nvm/versions/node/v12.18.3/lib/node_modules/cabal/node_modules/leveldown
node-gyp-build

node-webcam@0.6.4 postinstall /home/egil/.nvm/versions/node/v12.18.3/lib/node_modules/cabal/node_modules/node-webcam
node ./bin/postinstall.js

  • cabal@13.1.11
    added 280 packages from 165 contributors in 57.418s

Its installed! Yipii 😍