nn icon indicating copy to clipboard operation
nn copied to clipboard

`yarn global add` does not respect the version

Open luxzeitlos opened this issue 7 years ago • 4 comments

I'm honestly not sure if this is a yarn or nn bug. Hoever it seems to be fixed for yarn and nvm on MacOS.

luxzeitlos avatar Aug 09 '18 12:08 luxzeitlos

@luxferresum I guess maybe another yarn previously installed (not the one installed to ~/.nn) has higher priority in PATH. Not sure, could you give the output of which yarn?

pd4d10 avatar Aug 09 '18 13:08 pd4d10

yes, yarn is globally installed (as it should be AFAIK). Hoever I think it should the right node version and so global bin.

luxzeitlos avatar Aug 09 '18 19:08 luxzeitlos

@luxferresum Normally, if you are using Linux or macOS, npm i -g yarn should install yarn and add a link to ls ~/.nn/current/bin. You could check the output of

ls -al ~/.nn/current/bin

to see if yarn is installed and linked.

pd4d10 avatar Aug 10 '18 03:08 pd4d10

yarn recommends against npm i -g yarn. yarn should be installed with the setup or the system package manager! Still it should use the current node (by the PATH AFAIK) and install packages in the right folder. However I'm not sure about the details.

luxzeitlos avatar Aug 10 '18 11:08 luxzeitlos