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

Update bin-version-check package not to use cross-spaws-async package. #53

Closed
wants to merge 2 commits into from
Closed

Update bin-version-check package not to use cross-spaws-async package. #53

wants to merge 2 commits into from

Conversation

silverskyvicto
Copy link

When installing yeoman using npm, I get the following warning:

npm WARN deprecated [email protected]: cross-spawn no longer requires a build toolchain, use it instead

This is due to the old bin-version-check package, which is doctor's dependent library, so it can be resolved by using a newer version.

How about it?

$ npm install -g yo
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: cross-spawn no longer requires a build toolchain, use it instead
<User home directory>/.nodebrew/node/v12.16.2/bin/yo -> <User home directory>/.nodebrew/node/v12.16.2/lib/node_modules/yo/lib/cli.js
<User home directory>/.nodebrew/node/v12.16.2/bin/yo-complete -> <User home directory>/.nodebrew/node/v12.16.2/lib/node_modules/yo/lib/completion/index.js

> [email protected] postinstall <User home directory>/.nodebrew/node/v12.16.2/lib/node_modules/yo/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
> https://opencollective.com/core-js 
> https://www.patreon.com/zloirock 

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)


> [email protected] postinstall <User home directory>/.nodebrew/node/v12.16.2/lib/node_modules/yo/node_modules/ejs
> node ./postinstall.js

Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)


> [email protected] postinstall <User home directory>/.nodebrew/node/v12.16.2/lib/node_modules/yo/node_modules/spawn-sync
> node postinstall


> [email protected] postinstall <User home directory>/.nodebrew/node/v12.16.2/lib/node_modules/yo
> yodoctor


Yeoman Doctor
Running sanity checks on your system

✔ No .bowerrc file in home directory
✔ Global configuration file is valid
✔ NODE_PATH matches the npm root
✔ No .yo-rc.json file in home directory
✔ Node.js version
✔ npm version
✔ yo version

Everything looks all right!
+ [email protected]
added 684 packages from 392 contributors in 21.82s

@silverskyvicto silverskyvicto changed the title not to use cross-spaws-async package. Update bin-version-check package not to use cross-spaws-async package. May 10, 2020
@LitoMore
Copy link
Contributor

@silverskyvicto The error name has been changed to InvalidBinaryVersion in [email protected].

This code below should be updated:

if (error.name === 'InvalidBinVersion') {

@LitoMore
Copy link
Contributor

By the way, could you add test for this? I would be better if we can cover the catch statement.

@silverskyvicto
Copy link
Author

@LitoMore
I added one test and it seems that I was able to test the error of the pattern that is not InvalidBinaryVersion, so I will reflect this as well.

@LitoMore
Copy link
Contributor

ping @SBoudrias

@sindresorhus sindresorhus deleted the branch yeoman:master January 24, 2021 06:34
@silverskyvicto
Copy link
Author

@LitoMore
It's been a long time since I submitted this pull request, has it not gone through review?

@silverskyvicto
Copy link
Author

Related Issue: #49

Logicer16 added a commit to Logicer16/doctor that referenced this pull request Jun 2, 2021
mshima pushed a commit that referenced this pull request Jun 3, 2021
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

Successfully merging this pull request may close these issues.

3 participants