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

--no-registry flag does not work #163

Open cyberbiont opened 3 years ago

cyberbiont commented 3 years ago

I need to install peer dependencies from a package, symlinked via npm link. When I do install-peerdeps <packageName> -oSn --dry-run It shows me peer deps from npm-published version anyway

I tried this with both npm 6 and 7

FDiskas commented 2 years ago

The same is in my case. I have not released the package and just simply symlinked it in test project. By providing --no-registry flag I hope that peerDependencies will be taken from package.json and no request to npm registry was made. But when I do so I got something like

Error: undefined

breeze9527 commented 2 years ago

in commander.js, --no-xxx call negatable boolean option, so we should use program.registry instead of program.noRegistry in cli.js

https://github.com/tj/commander.js#other-option-types-negatable-boolean-and-booleanvalue