29 February 2016
I created a script package for hubot and followed the developer guide for publishing a package. I received an unmet peer dependency build warning when I did the install. This post describes what that is.
The docs state:
In the root of your package do this:
npm install . -g
Which gave me the following warning message:
Why did this happen?
I am using npm version 3.7.5. As of version 3, npm will no longer install a peer dependency for you. In this case no action is needed and the warning can be ignore. This is because the package is a plugin to hubot which already has the dependency listed in its package.json file. Building and running hubot worked as expected with no warning or error messages.
However, if you do want to install the hubot peer dependency you can do so with the following:
Note: when doing a peer dependency install you will need to install the packages as a one liner, with the dependency listed first. Installing them separately will not work.
For reference see: