Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Commit

Permalink
Fix Error: EPERM: on Windows box
Browse files Browse the repository at this point in the history
`pipe` should be the default option in `execSync`, but it seems it is not the case.

https://nodejs.org/api/child_process.html#child_process_options_stdio

Closes 244.
  • Loading branch information
albertosantini committed Oct 29, 2015
1 parent e3cc188 commit 2ef8299
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/linter-eslint.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ module.exports =

# If none, try to find it
unless globalNodePath
globalNodePath = execSync 'npm config get prefix', {encoding: 'utf8'}
globalNodePath = execSync 'npm config get prefix', {encoding: 'utf8', stdio: 'pipe'}
globalNodePath = globalNodePath.replace /[\n\r\t]/g, ''

# Windows specific
Expand Down

0 comments on commit 2ef8299

Please sign in to comment.