You are not logged in.
Pages: 1
Hi,
I've installed node 10 via nvm but when I try to use it I get `Segmentation fault (core dumped)`.
Anyone else using node 10.14.2 with nvm?
Regards,
Offline
Have you tried installing nodejs-lts-dubnium from the community repository?
If someone else's prebuilt binaries don't work, then it's likely not arch-specific. But if you don't show us the stack trace (e.g. using coredumpctl) then we will never know...
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
Here is the coredump:
```
Message: Process 18970 (node) of user 1000 dumped core.
Stack trace of thread 18970:
#0 0x00007f5e7b0f114d _ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionC>
#1 0x000055e7b7b6fc78 n/a (/home/calin/.nvm/versions/node/v10.14.2/bin/node)
#2 0x000055e7b7b71256 n/a (/home/calin/.nvm/versions/node/v10.14.2/bin/node)
#3 0x00002b557635be1d n/a (n/a)
#4 0x00002b55763118d5 n/a (n/a)
#5 0x00002b55763118d5 n/a (n/a)
#6 0x00002b557630ee75 n/a (n/a)
#7 0x00002b55763092c1 n/a (n/a)
#8 0x000055e7b7e8d19f n/a (/home/calin/.nvm/versions/node/v10.14.2/bin/node)
#9 0x000055e7b7af9438 n/a (/home/calin/.nvm/versions/node/v10.14.2/bin/node)
#10 0x000055e7b78eae81 n/a (/home/calin/.nvm/versions/node/v10.14.2/bin/node)
#11 0x000055e7b78f2b2b n/a (/home/calin/.nvm/versions/node/v10.14.2/bin/node)
#12 0x000055e7b78f0dae n/a (/home/calin/.nvm/versions/node/v10.14.2/bin/node)
#13 0x00007f5e87950223 __libc_start_main (libc.so.6)
#14 0x000055e7b78a4c8e n/a (/home/calin/.nvm/versions/node/v10.14.2/bin/node)
```
Last edited by calin (2018-12-26 06:38:06)
Offline
When trying to install dubnium I get:
nvm install lts/dubnium [7d12h35m] M
Local cache found: $NVM_DIR/.cache/bin/node-v10.14.2-linux-x64/node-v10.14.2-linux-x64.tar.xz
Checksums match! Using existing downloaded archive $NVM_DIR/.cache/bin/node-v10.14.2-linux-x64/node-v10.14.2-linux-x64.tar.xz
nvm is not compatible with the npm config "prefix" option: currently set to ""
Run `nvm use --delete-prefix v10.14.2` to unset it.
exit code: 11
Bass encountered an error!
Offline
When trying to install dubnium I get:
nvm install lts/dubnium [7d12h35m] M
Local cache found: $NVM_DIR/.cache/bin/node-v10.14.2-linux-x64/node-v10.14.2-linux-x64.tar.xz
Checksums match! Using existing downloaded archive $NVM_DIR/.cache/bin/node-v10.14.2-linux-x64/node-v10.14.2-linux-x64.tar.xz
nvm is not compatible with the npm config "prefix" option: currently set to ""
Run `nvm use --delete-prefix v10.14.2` to unset it.
exit code: 11
Bass encountered an error!
Have you tried to reset the prefix (it seems to be empty):
npm config set prefix $NVM_DIR/versions/node/v10.14.2nvm is an AUR package, maybe you should try to install the LTS version (see eschwartz answer) from the community repository and not with nvm.
pacman -S nodejs-lts-dubniumFailure is success in progress.
A.E.
Offline
I've tried to set the prefix, I get a 'segment fault error'
Installing via pacman is not an option as I need to run multiple versions of node on my machine.
Offline
Can you try with
nvm use --delete-prefix v10.14.2If it still doesn't work, run the following commands and post the results
nvm debug
which npm
npm config get prefixFailure is success in progress.
A.E.
Offline
I have the same issue
> nvm debug
nvm --version: v0.34.0
$SHELL: /usr/bin/fish
$SHLVL: 2
$HOME: /home/calin
$NVM_DIR: '$HOME/.nvm'
$PATH: $NVM_DIR/versions/node/v9.11.2/bin:/usr/bin:/opt/pyenv/libexec:$HOME/.pyenv/shims:$HOME/.cargo/bin:$HOME/.rvm/gems/ruby-2.5.1/bin:$HOME/.rvm/gems/ruby-2.5.1@global/bin:$HOME/.rvm/rubies/ruby-2.5.1/bin:$HOME/.cargo/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:$HOME/.rvm/bin:$HOME/.rvm/bin:$HOME/.rvm/bin
$PREFIX: ''
$NPM_CONFIG_PREFIX: ''
$NVM_NODEJS_ORG_MIRROR: ''
$NVM_IOJS_ORG_MIRROR: ''
shell version: 'fish, version 3.0.2'
uname -a: 'Linux 5.0.2-zen1-1-zen #1 ZEN SMP PREEMPT Thu Mar 14 19:01:59 UTC 2019 x86_64 GNU/Linux'
OS version: Arch Linux ()
curl: /usr/bin/curl, curl 7.64.0 (x86_64-pc-linux-gnu) libcurl/7.64.0 OpenSSL/1.1.1b zlib/1.2.11 libidn2/2.1.1 libpsl/0.20.2 (+libidn2/2.1.1) libssh2/1.8.1 nghttp2/1.36.0
wget: not found
git: /usr/bin/git, git version 2.21.0
grep: /usr/bin/grep, grep (GNU grep) 3.3
awk: /usr/bin/awk, GNU Awk 4.2.1, API: 2.0 (GNU MPFR 4.0.2, GNU MP 6.1.2)
sed: /usr/bin/sed, sed (GNU sed) 4.7
cut: /usr/bin/cut, cut (GNU coreutils) 8.30
basename: /usr/bin/basename, basename (GNU coreutils) 8.30
rm: /usr/bin/rm, rm (GNU coreutils) 8.30
mkdir: /usr/bin/mkdir, mkdir (GNU coreutils) 8.30
xargs: /usr/bin/xargs, xargs (GNU findutils) 4.6.0
nvm current: v9.11.2
which node: $NVM_DIR/versions/node/v9.11.2/bin/node
which iojs: which: no iojs in ($NVM_DIR/versions/node/v9.11.2/bin:/usr/bin:/opt/pyenv/libexec:$HOME/.pyenv/shims:$HOME/.cargo/bin:$HOME/.rvm/gems/ruby-2.5.1/bin:$HOME/.rvm/gems/ruby-2.5.1@global/bin:$HOME/.rvm/rubies/ruby-2.5.1/bin:$HOME/.cargo/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:$HOME/.rvm/bin:$HOME/.rvm/bin:$HOME/.rvm/bin)
which npm: $NVM_DIR/versions/node/v9.11.2/bin/npm
npm config get prefix: $NVM_DIR/versions/node/v9.11.2
npm root -g: $NVM_DIR/versions/node/v9.11.2/lib/node_modules
exit code: 42
Bass encountered an error!
> which npm
~/.nvm/versions/node/v9.11.2/bin/npm
> npm config get prefix
~/.nvm/versions/node/v9.11.2
Offline
Pages: 1