Skip to content

Commit

Permalink
fix: install npm_config_platform=win32 (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimadeveatii committed Apr 30, 2020
1 parent ab6cd41 commit 3d0e75f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion download-chromedriver.js
Expand Up @@ -20,7 +20,8 @@ async function attemptDownload (version) {
const targetFolder = path.join(__dirname, 'bin')
const zipPath = await download(version)
await extractZip(zipPath, { dir: targetFolder })
if (process.platform !== 'win32') {
const platform = process.env.npm_config_platform || process.platform
if (platform !== 'win32') {
await fs.chmod(path.join(targetFolder, 'chromedriver'), 0o755)
}
} catch (err) {
Expand Down

0 comments on commit 3d0e75f

Please sign in to comment.