diff options
Diffstat (limited to 'node_modules/node-gyp/lib/list.js')
-rw-r--r-- | node_modules/node-gyp/lib/list.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/node_modules/node-gyp/lib/list.js b/node_modules/node-gyp/lib/list.js index 6ecf1ba86..64c4ef73f 100644 --- a/node_modules/node-gyp/lib/list.js +++ b/node_modules/node-gyp/lib/list.js @@ -7,18 +7,15 @@ exports.usage = 'Prints a listing of the currently installed node development fi * Module dependencies. */ -var fs = require('fs') +var fs = require('graceful-fs') , path = require('path') function list (gyp, args, callback) { - // TODO: Make ~/.node-gyp configurable - var nodeGypDir = path.resolve(process.env.HOME, '.node-gyp') - - gyp.verbose('using node-gyp dir', nodeGypDir) + gyp.verbose('using node-gyp dir', gyp.devDir) // readdir the node-gyp dir - fs.readdir(nodeGypDir, onreaddir) + fs.readdir(gyp.devDir, onreaddir) function onreaddir (err, versions) { if (err && err.code != 'ENOENT') { |