From 2ef829978515be45b47483fea50421f8cbc9c68d Mon Sep 17 00:00:00 2001 From: Alberto Santini Date: Thu, 29 Oct 2015 14:24:33 +0100 Subject: [PATCH] Fix Error: EPERM: on Windows box `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. --- lib/linter-eslint.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/linter-eslint.coffee b/lib/linter-eslint.coffee index 527458e9..01d2c02c 100644 --- a/lib/linter-eslint.coffee +++ b/lib/linter-eslint.coffee @@ -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