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

how to use #2

Open
2 tasks
rkristelijn opened this issue Jul 3, 2019 · 0 comments
Open
2 tasks

how to use #2

rkristelijn opened this issue Jul 3, 2019 · 0 comments

Comments

@rkristelijn
Copy link

rkristelijn commented Jul 3, 2019

First of all, thanks for looking into npm WARN and proposing a fix.

I'm investigating how to suppress certain npm warnings that I know I don't need the dependencies of, e.g. bootstrap. I just want to use the css and ignore jQuery and popper.

npm WARN babel-core@7.0.0-bridge.0 requires a peer of @babel/core@^7.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN bootstrap@4.3.1 requires a peer of jquery@1.9.1 - 3 but none is installed. You must install peer dependencies yours

However I'm stuck at this step: https://github.com/codejamninja/ignore-warnings#usage

What file do I need to create?

Also installing this package adds one warning:

npm WARN bootstrap@4.3.1 requires a peer of popper.js@^1.14.7 but none is installed. You must install peer dependencies yourself

Next to that I'm thinking about just installing jquery and popper, that also removes the warning. I don't have to use the code in node_modules, it just sits there, adds some space but removes the warning. What is your view on this approach?

So TL;DR;

  • please update the readme.md: add filename in https://github.com/codejamninja/ignore-warnings#usage
  • please update readme.md: add motivation or differences with just installing the peer dependencies; e.g. webpack includes the peer dependencies in the packer, so this lib removes the warning and keeps the codebase small
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

No branches or pull requests

1 participant