Today I Learned

A Hashrocket project

List Peer Dependencies Using NPM

Sometimes, it’s useful to know what exactly a NPM package depends on before installing it. You can list that package’s dependencies by using NPM:

npm info react-native peerDependencies

Optionally, you can target a specific release with:

npm info react-native@latest peerDependencies
Looking for help? At Hashrocket, our JavaScript experts launch scalable, performant apps on the Web, Android and iOS. Contact us and find out how we can help you.