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

[SOLVED] yarn can't locate npm package under asdf-nodejs #79

Closed
zenny opened this issue May 26, 2018 · 1 comment
Closed

[SOLVED] yarn can't locate npm package under asdf-nodejs #79

zenny opened this issue May 26, 2018 · 1 comment

Comments

@zenny
Copy link

zenny commented May 26, 2018

Hi,

yarn can be installed alright with 'npm i -g yarn', but yarn binary does not seem to be located.

$  npm i -g yarn
/home/zenny/.asdf/installs/nodejs/8.11.1/.npm/bin/yarn -> /home/zenny/.asdf/installs/nodejs/8.11.1/.npm/lib/node_modules/yarn/bin/yarn.js
/home/zenny/.asdf/installs/nodejs/8.11.1/.npm/bin/yarnpkg -> /home/zenny/.asdf/installs/nodejs/8.11.1/.npm/lib/node_modules/yarn/bin/yarn.js
+ [email protected]
updated 1 package in 3.805s

$  which yarn
$  echo $PATH
:/home/zenny/.asdf/shims:/home/zenny/.asdf/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
$  yarn install
The program 'yarn' is currently not installed. You can install it by typing:
sudo apt install cmdtest
$  /home/zenny/.asdf/installs/nodejs/8.11.1/.npm/bin/yarn install
yarn install v1.7.0
[1/4] Resolving packages...
[2/4] Fetching packages...
....

Thus the absolute path to yarn works. Any inputs appreciated.

Cheers,

@zenny zenny changed the title yarn can't locate npm package under asdf-nodejs [SOLVED] yarn can't locate npm package under asdf-nodejs May 26, 2018
@zenny
Copy link
Author

zenny commented May 26, 2018

The issue is solved with 'asdf reshim nodejs' as explained at #42 (comment)

@zenny zenny closed this as completed May 26, 2018
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

1 participant