diff options
Diffstat (limited to 'deps/npm/lib/init.js')
-rw-r--r-- | deps/npm/lib/init.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/deps/npm/lib/init.js b/deps/npm/lib/init.js index d064ae8bc..8ae991f5b 100644 --- a/deps/npm/lib/init.js +++ b/deps/npm/lib/init.js @@ -12,6 +12,7 @@ init.usage = "npm init" function init (args, cb) { var dir = process.cwd() log.pause() + npm.spinner.stop() var initFile = npm.config.get('init-module') console.log( @@ -31,6 +32,10 @@ function init (args, cb) { log.resume() log.silly('package data', data) log.info('init', 'written successfully') + if (er && er.message === 'canceled') { + log.warn('init', 'canceled') + return cb(null, data) + } cb(er, data) }) } |