From d2ddd0f98db3a8bdf1f002ea4485d485752a3b74 Mon Sep 17 00:00:00 2001 From: Ben Newman Date: Wed, 13 Jul 2016 13:05:17 -0400 Subject: [PATCH] Pass --no-bin-links to `npm rebuild` to fix #7401. --- tools/static-assets/server/npm-rebuild-args.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/static-assets/server/npm-rebuild-args.js b/tools/static-assets/server/npm-rebuild-args.js index d4451f8dd4..238f903103 100644 --- a/tools/static-assets/server/npm-rebuild-args.js +++ b/tools/static-assets/server/npm-rebuild-args.js @@ -2,6 +2,11 @@ var args = [ "rebuild", + // The --no-bin-links flag tells npm not to create symlinks in the + // node_modules/.bin/ directory when rebuilding packages, which helps + // avoid problems like https://github.com/meteor/meteor/issues/7401. + "--no-bin-links", + // The --update-binary flag tells node-pre-gyp to replace previously // installed local binaries with remote binaries: // https://github.com/mapbox/node-pre-gyp#options