install-peerdeps icon indicating copy to clipboard operation
install-peerdeps copied to clipboard

--no-registry flag does not work

Open cyberbiont opened this issue 4 years ago • 2 comments

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

cyberbiont avatar Sep 08 '21 15:09 cyberbiont

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

FDiskas avatar Jan 27 '22 19:01 FDiskas

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

breeze9527 avatar Jul 06 '22 05:07 breeze9527