diff options
Diffstat (limited to 'deps/npm/lib/install/validate-args.js')
-rw-r--r-- | deps/npm/lib/install/validate-args.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/deps/npm/lib/install/validate-args.js b/deps/npm/lib/install/validate-args.js index 02c0558e4c..c30bf8695b 100644 --- a/deps/npm/lib/install/validate-args.js +++ b/deps/npm/lib/install/validate-args.js @@ -50,7 +50,12 @@ function checkSelf (idealTree, pkg, force, next) { idealTree.warnings.push(warn) next() } else { - var er = new Error('Refusing to install ' + pkg.name + ' as a dependency of itself') + var er = new Error('Refusing to install package with name "' + pkg.name + + '" under a package\n' + + 'also called "' + pkg.name + '". Did you name your project the same\n' + + 'as the dependency you\'re installing?\n\n' + + 'For more information, see:\n' + + ' <https://docs.npmjs.com/cli/install#limitations-of-npms-install-algorithm>') er.code = 'ENOSELF' next(er) } |