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

No binary installed with yarn #87

Closed
mhart opened this issue Aug 23, 2017 · 2 comments
Closed

No binary installed with yarn #87

mhart opened this issue Aug 23, 2017 · 2 comments
Labels

Comments

@mhart
Copy link
Contributor

mhart commented Aug 23, 2017

The yarn install succeeds, but there's no binary:

/ # yarn global add aws-sam-local
yarn global v0.27.5
warning package.json: No license field
warning No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
warning [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
warning "[email protected]" has no binaries
warning No license field
Done in 8.92s.
/ # sam --version
/bin/sh: sam: not found

I believe it would be good to get working with yarn just because I've seen far fewer problems with global installs with yarn vs npm (especially npm@5 – it still has some teething problems)

@sanathkr
Copy link
Contributor

NPM install is actually handled by this package https://github.com/sanathkr/go-npm. Unfortunately it calls npm to get the directory where binaries should be installed - https://github.com/sanathkr/go-npm/blob/master/src/index.js#L28-L50

I need to find if the execution is coming from Yarn and handle it differently.

@sanathkr
Copy link
Contributor

Closing this in favor of sanathkr/go-npm#1

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

Successfully merging a pull request may close this issue.

2 participants