
Suggested way is to use -assume-installed nodejs=, as per the manual pacman(8) § TRANSACTION OPTIONS (APPLY TO -S, -R AND -U). If you decide to use nvm AUR, previously it was suggested to use nodejs-fake package from AUR. In the Arch wiki is something mentioned but I don’t understand what to do with it.
Nvm install node lts install#
Since I am currently doing a new installation of Manjaro, I would like to install node and nvm properly to avoid issues in the future. I am not sure what the exact culprit was or which package caused it, but it has a hassle to fix it.įor example, the Joplin package has nodejs as a dependency, and now I have nodejs-lts-gallium installed too. At least I ran into issues like that before. I assume it will probably be installed since it’s not there yet (or am I wrong on this?), which messes things up. If another package has nodejs as a dependency. I use nvm (which I installed via pamac) and I have multiple versions of node on my system working.īut the nodejs package (in pamac) is not marked installed (and I guess not installed) since I never installed it with pamac. nvmrc for years, and I read the section in the Arch wiki (I even linked it in the question.) Sorry, maybe I was not clear in my question. But what is a better way to have node installed on the system for applications? nvmrc file in the project folder, nvm uses the version specified in there. And nvm uses normally the package manager installed version. So it would be most convenient for me, if I can have node and npm installed via the package manager (therefore it will be kept up to date).

I need the older versions of node/npm mostly for web dev tasks.
Nvm install node lts how to#
The Arch Wiki mentions to add -assume-installed nodejs=, but I cannot figure out how to use that as a setting for the Package manager.

npm -v shows different version than what’s installed according to the package manager) Node/npm are not up to date even though the installed package in the package manager says it is (i.e. updates of electron apps via pacman/yay don’t work). I use the package manager ( Add/Remove Software) and the nodejs package then gets installed as a dependency sometimes, which causes some issues (e.g. My current setup works okay but seems to not work quite correctly. I also need multiple versions, which is why I use nvm. I need Node.js for various reasons, like installed applications and also for web development projects.
