diff options
Diffstat (limited to 'lib/npm.js')
-rw-r--r-- | lib/npm.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/npm.js b/lib/npm.js index 858a5e8c4..7b3826290 100644 --- a/lib/npm.js +++ b/lib/npm.js @@ -31,7 +31,15 @@ var EventEmitter = require("events").EventEmitter , chain = slide.chain , RegClient = require("npm-registry-client") -npm.config = {loaded: false} +npm.config = { + loaded: false, + get: function() { + throw new Error('npm.load() required') + }, + set: function() { + throw new Error('npm.load() required') + } +} // /usr/local is often a read-only fs, which is not // well handled by node or mkdirp. Just double-check |