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

Fix npm rebuild #1885

Merged
merged 1 commit into from
Feb 22, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down
3 changes: 2 additions & 1 deletion scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down