message: Refactor install script
diff: @@ -32,16 +32,18 @@ function downloadAndExtract (link, filePath) {
  return
  }
  + // Handle successful response.
  if (response.statusCode === 200) {
  const writeStream = fs.createWriteStream(filePath)
  - response.pipe(writeStream)
  - writeStream.on('error', () => {
  + .on('error', () => {
  reject(new Error('Could not write file to disk.'))
  })
  - writeStream.on('finish', () => {
  + .on('finish', () => {
  writeStream.close()
  unzip()
  })
  +
  + response.pipe(writeStream)
  return
  }
  