You are not logged in.

#1 2018-05-30 22:17:31

archfluke
Member
Registered: 2016-06-08
Posts: 39

how to install yarn without installing nodejs dependency

I have nvm installed which handles installation of all my node versions, in ~/.nvm and I was advised, at one point, how to install yarn with pacman without having pacman install nodejs for me, since I've delegated that to nvm.  For now, I'm using 'sudo pacman -Sdd yarn', but I recall being given another flag and arguments for pacman to accomplish what I'm trying to do.    thank you.

Offline

#2 2018-05-30 22:42:22

loqs
Member
Registered: 2014-03-06
Posts: 18,893

Re: how to install yarn without installing nodejs dependency

--assume-installed ?

Offline

#3 2018-05-30 22:43:30

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: how to install yarn without installing nodejs dependency

Don't. Use the official yarnpkg instructions for installing outside of the package manager: https://yarnpkg.com/en/docs/install#alternatives-stable

Use this to install yarn to your own home folder, where it will live in peace with nvm, rather dying in discord and war with pacman (which will report consistency errors, or install nodejs for you the next time yarn updates, or result in software which is broken depending on whether/how your nvm environment is currently set up).

Last edited by eschwartz (2018-05-30 22:47:47)


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB