diff --git a/packages/insomnia-app/package.json b/packages/insomnia-app/package.json index 68933b0f5..26ea275cc 100644 --- a/packages/insomnia-app/package.json +++ b/packages/insomnia-app/package.json @@ -23,7 +23,7 @@ "test": "flow check && npm run lint && npm run test:jest", "test:jest": "cross-env NODE_ENV=test jest --silent", "test-appveyor": "npm run test -- --maxWorkers 1", - "pre-bootstrap": "npm install && electron-rebuild -f -w insomnia-libcurl", + "pre-bootstrap": "npm install --build-from-source && electron-rebuild -f -w insomnia-libcurl", "start:electron": "cross-env NODE_ENV=development webpack --config ./webpack/webpack.config.electron.babel.js && electron .", "start:dev-server": "webpack-dev-server --config ./webpack/webpack.config.development.babel.js", "start": "concurrently --kill-others \"npm run start:dev-server\" \"npm run start:electron\"", diff --git a/packages/insomnia-app/scripts/build.js b/packages/insomnia-app/scripts/build.js index 5415e7639..aca632f30 100644 --- a/packages/insomnia-app/scripts/build.js +++ b/packages/insomnia-app/scripts/build.js @@ -85,7 +85,13 @@ async function install(relDir) { return new Promise((resolve, reject) => { const prefix = path.resolve(__dirname, relDir); npm.load( - { prefix, production: true, optional: false, 'package-lock': false }, + { + prefix, + buildFromSource: true, + production: true, + optional: false, + 'package-lock': false + }, err => { if (err) { return reject(err);