Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install script should not write partially downloaded binaries
Currently the binary download is streamed to disk once a 200 response has been recieved. When an error occurs during the download a partially downloaded binary is left on disk. Subsequent installs see the binary and bail out of re-downloading it. Worse yet those subsequent installs move the binary into the global cache so even removing node_modules will not remove the broken binary. With this patch the binary is only flushed to disk once it has been fully downloaded. Fixes sass#1882 Fixes sass#1888
- Loading branch information