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

option to not require permission to install on yarn. #13

Closed
tnrich opened this issue Oct 12, 2017 · 1 comment
Closed

option to not require permission to install on yarn. #13

tnrich opened this issue Oct 12, 2017 · 1 comment

Comments

@tnrich
Copy link

tnrich commented Oct 12, 2017

Hey there,

My post install script is getting hung up and not finishing:

image

I think if there were an option to auto-install if yarn is detected that would fix the issue for me. Thanks!

@nathanhleung
Copy link
Owner

nathanhleung commented Oct 13, 2017

Hi, no problem: to install with Yarn automatically just use the --yarn flag, or its shorthand alias -Y:

Usage: install-peerdeps <package>[@<version>], default version is 'latest'

Installs the specified package along with correct peerDeps.

Options:
 
  -h, --help        output usage information
  -V, --version     output the version number
  -d, --dev         Install the package as a devDependency
  -o, --only-peers  Install only peerDependencies of the package
  -S, --silent      If using npm, don't save in package.json
  -Y, --yarn        Install with yarn

Hope this helps!

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