Quantcast
Channel: User antpaw - Stack Overflow
Viewing all articles
Browse latest Browse all 35

npm peer dependency check

$
0
0
$ npm installmy_module@0.0.1 /Users/antpaw/my_module├── my_module@0.0.1 └── UNMET PEER DEPENDENCY request@^2.74.0npm WARN my_module@0.0.1 requires a peer of request@^2.74.0 but none was installed.

I don't understand how this can be only a warning. It's a pretty big deal for my app if "request" isn't install and my app will crash.

How can i make npm install exit with 1 if a peer dependency is unmet or is there something like npm do-i-have-everything-i-need-installed command that will exit with 1?


Viewing all articles
Browse latest Browse all 35

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>