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 promptions quit without any outputs. #70

Closed
HakurouKen opened this issue Feb 18, 2020 · 2 comments
Closed

Yarn promptions quit without any outputs. #70

HakurouKen opened this issue Feb 18, 2020 · 2 comments

Comments

@HakurouKen
Copy link

> npx install-peerdeps eslint-config-airbnb-base
install-peerdeps v2.0.1
It seems as if you are using Yarn. Would you like to use Yarn for the installation? (y/n) y

Error happened due to the next lines:

install-peerdeps/src/cli.js

Lines 180 to 194 in 0db94a1

confirm(
"It seems as if you are using Yarn. Would you like to use Yarn for the installation? (y/n)",
(err, value) => {
if (err) {
console.log(`${C.errorText} ${err.message}`);
process.exit(1);
}
// Value is true or false; if true, they want to use Yarn
if (value) {
packageManager = C.yarn;
}
// Now install, but with the new packageManager
installPeerDeps({ ...options, packageManager }, installCb);
}
);

promptly.confirm won't accept a callback as the second params in ^3.0.3 any more.
See their docs in https:/moxystudio/node-promptly#confirmmessage-options

@HakurouKen HakurouKen changed the title Yarn promptiont quit without any outputs. Yarn promptions quit without any outputs. Feb 18, 2020
@nathanhleung
Copy link
Owner

Should be closed by #66, thanks for waiting!

@nathanhleung
Copy link
Owner

Also, released in 2.0.2

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