Commit 997b0b69 by Adeel Mujahid

Merge pull request #749 from am11/master

Install: Fixes download bug 🐛
parents 4921ee77 7ceddc17
......@@ -32,6 +32,8 @@ function download(url, dest, cb) {
}
response.pipe(fs.createWriteStream(dest));
cb();
}).on('error', returnError);
});
}
......@@ -75,11 +77,10 @@ function applyProxy(options, cb) {
function checkAndDownloadBinary() {
try {
process.sass.getBinaryPath(true);
} catch (e) {
return;
}
} catch (e) { }
mkdirp(path.dirname(process.sass.binaryPath), function(err) {
mkdir(path.dirname(process.sass.binaryPath), function(err) {
if (err) {
console.error(err);
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment