

Thanks npm is awesome as a package manager. Then add the prepare script in your module's. First install install-peers-cli package: yarn add -D install-peers-cli. Fortunately prepare is called after dependencies installation and only when you are developing so it won't install the peer dependencies when a user install your module. Reposted from Domenics blog with permission. It should be called after dependencies installation. Highlight an unwanted part with your curser. Node.js® is a JavaScript runtime built on Chromes V8 JavaScript engine.copy & paste your error into your code editor.


Is there a magic flag that I can pass to npm that will install the peer dependencies as well? I haven’t been able to find one… It’s tedious to manually copy and paste the peer dependencies and make sure I have the correct versions.Ĭheat code helpful in this scenario and some others… ├── UNMET PEER DEPENDENCY Npm WARN requires a peer of but none was installed. Npm WARN requires a peer of ^0.33.3 but none was installed. Npm WARN requires a peer of ^3.0.2 but none was installed. For example, when I install Angular2: npm install -save angular2
