Terminal hangs after nvm install

Hi,

I have installed nvm through pamac,
after that I installed node through nvm and ran:
source ~/.nvm/nvm.sh

After that each time I open the terminal I get the following prompt:
The application ng is not installed. It may be found in the following packages:
community/ceph-mgr 15.2.17-1 /usr/share/ceph/mgr/dashboard/frontend/node_modules/@angular/cli/bin/ng

Do you want to Install package ceph-mgr? (y/N)

No matter what I choose ‘y’ or ‘N’ the terminal is not responding and hangs.

I’m not sure how to get around this, I can’t use the terminal at all now.

  • I’m guessing one option would be manually removing all nvm / node related folders and files (can’t use the terminal)
  • checked the /usr/share/… path shown in the prompt but I don’t have any ceph folder there
  • manjaro version Sikaris 22.0.0

I would really appreciate any hints on how to debug / what to check.

Try to install ceph-mgr (AUR) by Pamac…

The post install message does not contain above instruction

You need to source nvm before you can use it. Do one of the following
or similar depending on your shell (and then restart your shell):

  echo 'source /usr/share/nvm/init-nvm.sh' >> ~/.bashrc
  echo 'source /usr/share/nvm/init-nvm.sh' >> ~/.zshrc

You can now install node.js versions (e.g. nvm install 10) and
activate them (e.g. nvm use 10).

init-nvm.sh is a convenience script which does the following:

[ -z "$NVM_DIR" ] && export NVM_DIR="$HOME/.nvm"
source /usr/share/nvm/nvm.sh
source /usr/share/nvm/bash_completion
source /usr/share/nvm/install-nvm-exec

You may wish to customize and put these lines directly in your
.bashrc (or similar) if, for example, you would like an NVM_DIR
other than ~/.nvm or you don't want bash completion.

See the nvm readme for more information: https://github.com/creationix/nvm

That is likely because you didn’t follow instructions

source /usr/share/nvm/init-nvm.sh
1 Like

Thanks @GaVenga ,
I installed ceph-mgr, but it looks like it’s not picking it up

1 Like

Thanks for the response @linux-aarhus
you’re right, I did not follow the official instructions from the docs,
I took the instructions from some blog post,

I’m thinking what I could try now:

  • manually finding all the places nvm, node is installed and removing them (can’t use the terminal)

Ok, so I managed to resolve the problem simply by installing angular-cli through the Add/Remove software option :slight_smile:

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.