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 install not prompting passphrase required #3699

Closed
p-fernandez opened this issue Jun 22, 2017 · 2 comments
Closed

yarn install not prompting passphrase required #3699

p-fernandez opened this issue Jun 22, 2017 · 2 comments

Comments

@p-fernandez
Copy link

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
Running yarn install gets stuck without prompting passphrase required when trying to install package in external repository, having the RSA key with passphrase.

If the current behavior is a bug, please provide the steps to reproduce.

  1. package.json with external private repository dependency:
{
  ...
  "dependencies": {
     ...     
     "externalPackage": "git+ssh://[email protected]/whatever/externalPackage.git",
     ...
  },
  ...
}

2.RSA key with passphrase.
3. Execute yarn install.
4. Installation gets stuck waiting for user to insert passphrase to be able to access to private repository but passphrase required message is not prompted.

What is the expected behavior?
Passphrase required message should be prompted. Or showing any kind of error message.

Please mention your node.js, yarn and operating system version.
yarn --version: 0.24.6
node -v: 8.1.2
O.S. version: OS X 10.12.5

@arcanis
Copy link
Member

arcanis commented Jun 22, 2017

The message is prompted, but overwritten by the progress bar.

Since install from Yarn should work without interaction with the using (think CI, etc), we decided to completely disable prompting for password with git and ssh. Because of this, starting at the next 0.27 release, the install will fail instead of hanging eternally. If you wish to avoid this, we recommend you to use an ssh agent.

@arcanis arcanis closed this as completed Jun 22, 2017
@p-fernandez
Copy link
Author

I agree with the 0.27 release approach. Thank you.

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