nn
nn copied to clipboard
`yarn global add` does not respect the version
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.
@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?
yes, yarn is globally installed (as it should be AFAIK). Hoever I think it should the right node version and so global bin.
@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.
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.