In order to use this package I have to manually install yamlparser as if it were an external dependency, which it isn't.
The library src code makes a call to require('yamlparser') therefore it should not be considered a devDependency, but an actual dependency in the package.json. It is required in order to use this library, not just develop on it.
Closing, I've realized this is in the README and more so an issue with another NPM package utilizing this one and not declaring yamlparser as a dependency.
In order to use this package I have to manually install
yamlparser
as if it were an external dependency, which it isn't.The library src code makes a call to
require('yamlparser')
therefore it should not be considered adevDependency
, but an actualdependency
in thepackage.json
. It is required in order to use this library, not just develop on it.The call: https://github.com/3rd-Eden/useragent/blob/c92567b6b5212436c015bd8b100968e836bf10fe/lib/update.js#L15
The incorrect declaration in package: https://github.com/3rd-Eden/useragent/blob/master/package.json#L41
Should be
I've also fixed your version semantics to use
~
in that example, as one would expect. https://docs.npmjs.com/about-semantic-versioning