nathanhleung / install-peerdeps

💻 A command-line interface to install an NPM package and its peer dependencies automatically.
https://www.npmjs.com/package/install-peerdeps
MIT License
296 stars 20 forks source link

load package version failure when using yarn@3 #215

Open breeze9527 opened 2 years ago

breeze9527 commented 2 years ago

in getPackageData function, install-peerdeps using yarn info package@version --json to get package.json content. but seems like unwork in yarn@3:

first problem, yarn info do not support specify version number in package name image

and, stdout return content with unexpected format: image

english is not my native language, hope you understand what i meant 😄