Skip to content

Commit

Permalink
Replace fs.accessSync call to fs.statSync
Browse files Browse the repository at this point in the history
fs.accessSync does not exist in Node 0.10.x.
  • Loading branch information
richardlau committed Jun 14, 2016
1 parent d973cf2 commit fd74f48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/configure.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ function configure (gyp, argv, callback) {
for (var next = 0; next < candidates.length; next++) {
node_exp_file = path.resolve(node_root_dir, candidates[next])
try {
fs.accessSync(node_exp_file, fs.R_OK)
fs.statSync(node_exp_file)
// exp file found, stop looking
break
} catch (exception) {
Expand Down

0 comments on commit fd74f48

Please sign in to comment.