-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Installed peers get to package.json in "dependencies" section when using npm 5 #13
Comments
It is possible that I spelled option wrong, if so - check marapper@07fc6a6 |
Isn't this very related to my issue #12? |
|
It's because of this line: https://github.com/spatie/npm-install-peers/blob/master/src/index.js#L33 There is no |
@sebastiandedeyne In 1.2.0-rc.1 this is not fixed. As @alexindigo noted, there should be "--no-save" argument, not "no-save". |
@mmlleevvyy Checkout npmjs.org/install-peers it has that issue fixed and automates things a little bit further :) |
Released |
I think it works a little bit different from what your fix implies. |
Published another go |
Looks good 👍 |
Stable version |
Installed peers get to package.json in "dependencies" section when using npm 5. This is likely related to npm 5 adding to "dependencies" even without "save" flag.
This can ve avoided with setting flag
npm config set save false
cbut setting this for user environment is wrong.Also seems that we can use
--no-save
flag, I am gonna test it.UPD. Looks fine, added a PR.
The text was updated successfully, but these errors were encountered: