Skip to content

Commit fd74f48

Browse files
committed
Replace fs.accessSync call to fs.statSync
fs.accessSync does not exist in Node 0.10.x.
1 parent d973cf2 commit fd74f48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/configure.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ function configure (gyp, argv, callback) {
236236
for (var next = 0; next < candidates.length; next++) {
237237
node_exp_file = path.resolve(node_root_dir, candidates[next])
238238
try {
239-
fs.accessSync(node_exp_file, fs.R_OK)
239+
fs.statSync(node_exp_file)
240240
// exp file found, stop looking
241241
break
242242
} catch (exception) {

0 commit comments

Comments
 (0)