Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 9905a59

Browse files
authored
Merge pull request #1885 from xzyfer/fix-rebuild
Fix npm rebuild
2 parents eb7f013 + f0419a7 commit 9905a59

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/errors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function foundBinariesList() {
2525
function missingBinaryFooter() {
2626
return [
2727
'This usually happens because your environment has changed since running `npm install`.',
28-
'Run `npm rebuild node-sass` to build the binding for your current environment.',
28+
'Run `npm rebuild node-sass --force` to build the binding for your current environment.',
2929
].join('\n');
3030
}
3131

scripts/build.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ function build(options) {
9393
function parseArgs(args) {
9494
var options = {
9595
arch: process.arch,
96-
platform: process.platform
96+
platform: process.platform,
97+
force: process.env.npm_config_force === 'true',
9798
};
9899

99100
options.args = args.filter(function(arg) {

0 commit comments

Comments
 (0)