I'm attempting to install a node module that has specified a peerDependencies
to an older version of a package. I know that module will work with the newer version. How can I tell npm to ignore the peerinvalid
error? Currently the peerinvalid
error is stoping the installation process.
This is the error:
npm ERR! peerinvalid Peer [email protected] wants [email protected]
Thanks!
A really hacky/temporary workaround is to modify the package.json of the installed packages with the peerDependency specified, deleting the lines that specify react as a peerDependency.
This hack will go away if you (or a colleague) need to npm install
your package's requirements from scratch. Like I said, a crappy temporary workaround.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With