Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yarn global add does not respect the version #4

Open
luxzeitlos opened this issue Aug 9, 2018 · 4 comments
Open

yarn global add does not respect the version #4

luxzeitlos opened this issue Aug 9, 2018 · 4 comments

Comments

@luxzeitlos
Copy link

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.

@pd4d10
Copy link
Owner

pd4d10 commented Aug 9, 2018

@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?

@luxzeitlos
Copy link
Author

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

@pd4d10
Copy link
Owner

pd4d10 commented Aug 10, 2018

@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.

@luxzeitlos
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants