nvm debug output:nvm --version: v0.34.0
$SHELL: /usr/bin/zsh
$SHLVL: 1
$HOME: /home/ablomen
$NVM_DIR: '$HOME/.nvm'
$PATH: $NVM_DIR/versions/node/v8.16.0/bin:$HOME/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
$PREFIX: ''
$NPM_CONFIG_PREFIX: ''
$NVM_NODEJS_ORG_MIRROR: ''
$NVM_IOJS_ORG_MIRROR: ''
shell version: 'zsh 5.5.1 (x86_64-ubuntu-linux-gnu)'
uname -a: 'Linux 5.0.0-13-generic #14-Ubuntu SMP Mon Apr 15 14:59:14 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux'
OS version: Ubuntu 19.04
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.0.5 libpsl/0.20.2 (+libidn2/2.0.5) libssh/0.8.6/openssl/zlib nghttp2/1.36.0 librtmp/2.3
wget: /usr/bin/wget, GNU Wget 1.20.1 built on linux-gnu.
git: /usr/bin/git, git version 2.20.1
grep: grep: aliased to grep --color (grep --color), 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: /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: rm: aliased to rm -i (rm -i), rm (GNU coreutils) 8.30
mkdir: /bin/mkdir, mkdir (GNU coreutils) 8.30
xargs: /usr/bin/xargs, xargs (GNU findutils) 4.6.0.225-235f
nvm current: v8.16.0
which node: $NVM_DIR/versions/node/v8.16.0/bin/node
which iojs: iojs not found
which npm: $NVM_DIR/versions/node/v8.16.0/bin/npm
npm config get prefix: $NVM_DIR/versions/node/v8.16.0
npm root -g: $NVM_DIR/versions/node/v8.16.0/lib/node_modules
nvm ls output: v8.16.0
v10.15.3
-> v12.2.0
default -> 8 (-> v8.16.0)
node -> stable (-> v12.2.0) (default)
stable -> 12.2 (-> v12.2.0) (default)
iojs -> N/A (default)
unstable -> N/A (default)
lts/* -> lts/dubnium (-> v10.15.3)
lts/argon -> v4.9.1 (-> N/A)
lts/boron -> v6.17.1 (-> N/A)
lts/carbon -> v8.16.0
lts/dubnium -> v10.15.3
How did you install nvm? (e.g. install script in readme, Homebrew):
install script in readme
What steps did you perform?
Removed ubuntu node/npm, removed ~/.npm-packages, removed ~/.nvm, removed .zshrc lines relating to earlier nvm install
Re-installed nvm via script in readme
Installed node 8, node 10, node 12
What happened?
~ nvm use 8
Now using node v8.16.0 (npm v6.4.1)
~ node
> console.log("works")
works
undefined
> % ~ nvm use 12
Now using node v12.2.0 (npm v6.9.0)
~ node
Welcome to Node.js v12.2.0.
Type ".help" for more information.
> console.log("me too!");
me too!
undefined
>
~ nvm use 10
nvm is not compatible with the npm config "prefix" option: currently set to ""
Run `nvm use --delete-prefix v10.15.3` to unset it.
~ nvm use --delete-prefix v10.15.3
~ node
[1] 23402 segmentation fault (core dumped) node
~ npm
[1] 23413 segmentation fault (core dumped) npm
~ which node
/home/ablomen/.nvm/versions/node/v10.15.3/bin/node
~ /home/ablomen/.nvm/versions/node/v10.15.3/bin/node
> console.log("works?");
works?
undefined
> %
What did you expect to happen?
Is there anything in any of your profile files (.bashrc, .bash_profile, .zshrc, etc) that modifies the PATH?
no
I tried narrowing it down a bit further, i tried the following v10.* versions:
v10.5.0 node works
v10.7.0 node works
v10.9.0 node works
v10.10.0 shows 'nvm use --delete-prefix' message, node does not run
v10.13.0 shows 'nvm use --delete-prefix' message, node does not run
v10.14.2 shows 'nvm use --delete-prefix' message, node does not run
v10.15.0 shows 'nvm use --delete-prefix' message, node does not run
v10.15.2 shows 'nvm use --delete-prefix' message, node does not run
v10.15.3 shows 'nvm use --delete-prefix' message, node does not run
Is this Manjaro, by chance? https://github.com/nvm-sh/nvm/issues/1968#issuecomment-484580256 may be related.
No this is Ubuntu 19.04 (and thank you for fixing the formatting!)
Just tried installing it on a Ubuntu 18.04.2 machine and it works as expected.
I will try setting up a stock virtual machine with ubuntu 19.04 and installing it there
Ah I also tried coredumpctl gdb -1 but it looks like its not the same issue (I also have no popcorntime installed) output is:
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f2717344f5f in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&) ()
from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
[Current thread is 1 (Thread 0x7f2716ee3740 (LWP 9659))]
Hmm ok so I set up a new VM with the same ubuntu version and it works fine. I will poke at it more at a later time to see if I can find the solution.
Ran into the same issue and sudo apt autoremove helped me. Looks like in my system were some old libraries remain from node that has been installed into the system before(without nvm)
Ran into the same issue and
sudo apt autoremovehelped me. Looks like in my system were some old libraries remain from node that has been installed into the system before(without nvm)
I LOVE U
Most helpful comment
Ran into the same issue and
sudo apt autoremovehelped me. Looks like in my system were some old libraries remain from node that has been installed into the system before(without nvm)