diff options
author | Ryan Florence <rpflorence@gmail.com> | 2015-12-16 03:48:56 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2017-07-18 03:17:41 +0300 |
commit | b019680db78ae0a6dff2289dbfe9f61fccbbe824 (patch) | |
tree | b8bf605cbb889e7aa879625d9b0b47f647478dae /lib | |
parent | 1ac470dd283cc7758dc37721dd6331d5b316dc99 (diff) |
validate-tree: improve peer-dep missing warnings
PR-URL: https://github.com/npm/npm/pull/10846
Credit: @ryanflorence
Reviewed-By: @iarna
Diffstat (limited to 'lib')
-rw-r--r-- | lib/install/validate-tree.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/install/validate-tree.js b/lib/install/validate-tree.js index ccd4e2e31..24a140171 100644 --- a/lib/install/validate-tree.js +++ b/lib/install/validate-tree.js @@ -40,7 +40,7 @@ function thenValidateAllPeerDeps (idealTree, next) { validate('OF', arguments) validateAllPeerDeps(idealTree, function (tree, pkgname, version) { var warn = new Error(packageId(tree) + ' requires a peer of ' + pkgname + '@' + - version + ' but none was installed.') + version + ' but none is installed. You must install peer dependencies yourself.') warn.code = 'EPEERINVALID' idealTree.warnings.push(warn) }) |