Quantcast
Channel: CNode:Node.js专业中文社区
Viewing all articles
Browse latest Browse all 14821

npm init 之后报错

$
0
0

如题,npm init 之后报错。想知道是什么原因导致的?

npm ERR! Cannot read property 'stop' of undefined
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "init"
npm ERR! node v6.6.0
npm ERR! npm  v3.10.3

npm ERR! Cannot read property 'stop' of undefined
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>
/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:95
    npm.spinner.stop()
               ^

TypeError: Cannot read property 'stop' of undefined
    at reallyExit (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:95:16)
    at writeLogFile (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:392:30)
    at exit (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:80:28)
    at process.errorHandler (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:387:3)
    at emitOne (events.js:96:13)
    at process.emit (events.js:188:7)
    at processEmit [as emit] (/usr/local/lib/node_modules/npm/node_modules/npmlog/node_modules/gauge/node_modules/signal-exit/index.js:146:32)
    at process._fatalException (bootstrap_node.js:296:26)

Viewing all articles
Browse latest Browse all 14821

Trending Articles