Skip to content

Commit

Permalink
fix: fallback cache dir guess
Browse files Browse the repository at this point in the history
  • Loading branch information
hackergrrl committed Oct 5, 2017
1 parent 4c83967 commit 23e278d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion local-cache.js
Expand Up @@ -2,7 +2,7 @@ var fs = require('fs')
var path = require('path')
var debug = require('debug')('friendpm')

var CACHE_DIR = process.env.npm_config_cache
var CACHE_DIR = process.env.npm_config_cache || path.join(require('os').homedir(), '.npm')

module.exports = function (opts) {
var reg = {}
Expand Down

0 comments on commit 23e278d

Please sign in to comment.