You are not logged in.

#1 2019-08-03 10:58:17

karcher
Member
Registered: 2018-01-09
Posts: 140

[SOLVED] How to install packages when nvm from AUR is installed?

Hi all,

I would like to use nvm for Node.js from now on. So, I've uninstalled node together with all dependencies and installed the nvm from the AUR. I've already installed 3 versions of Node.js and nvm seems to be working fine.

Now I want to install back some packages that were uninstalled during the uninstallation of the node package. When I try to install e.g. boostnote it wants to install yet another Node.js version, apparently as root. So, how do I handle this situation? Should I proceed with this installation like this? Is it possible that packages like boostnote use the Node.js versions installed with nvm in the home directory?

https://wiki.archlinux.org/index.php/Node.js

I also don't understand what is meant by that:
"--assume-installed nodejs=<version>"

Could someone please enlighten me?

Last edited by karcher (2019-08-03 13:09:43)

Offline

#2 2019-08-03 12:47:57

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,530
Website

Re: [SOLVED] How to install packages when nvm from AUR is installed?

karcher wrote:

I also don't understand what is meant by that:
"--assume-installed nodejs=<version>"

That is a pacman flag that is recommended for your exact situation.  When you are unable to install a package with pacman because that package depends on nodejs, then add the flag with the version of node that you are using from nvm.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2019-08-03 13:09:21

karcher
Member
Registered: 2018-01-09
Posts: 140

Re: [SOLVED] How to install packages when nvm from AUR is installed?

@Trilby: Thanks!
I did:

$ yay -S boostnote --assume-installed nodejs=11.15.0

and boostnote seems to be working fine.

Offline

Board footer

Powered by FluxBB