diff --git a/lib/express-middleware.js b/lib/express-middleware.js index cc67278c..bc316769 100644 --- a/lib/express-middleware.js +++ b/lib/express-middleware.js @@ -13,8 +13,9 @@ function safeRequire(m) { function createMiddlewareNotInstalled(memberName, moduleName) { return function () { - throw new Error('The middleware loopback.' + memberName + ' is not installed.\n' + - 'Please run `npm install ' + moduleName + '` to fix the problem.'); + var msg = 'The middleware loopback.' + memberName + ' is not installed.\n' + + 'Run `npm install --save ' + moduleName + '` to fix the problem.'; + throw new Error(msg); }; }