diff --git a/lib/errors.js b/lib/errors.js index 1dbcf02a7..6bfb77f29 100644 --- a/lib/errors.js +++ b/lib/errors.js @@ -25,7 +25,7 @@ function foundBinariesList() { function missingBinaryFooter() { return [ 'This usually happens because your environment has changed since running `npm install`.', - 'Run `npm rebuild node-sass` to build the binding for your current environment.', + 'Run `npm rebuild node-sass --force` to build the binding for your current environment.', ].join('\n'); } diff --git a/scripts/build.js b/scripts/build.js index ef919eed5..7bbba5ee4 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -93,7 +93,8 @@ function build(options) { function parseArgs(args) { var options = { arch: process.arch, - platform: process.platform + platform: process.platform, + force: process.env.npm_config_force === 'true', }; options.args = args.filter(function(arg) {