,在我的日誌寫的:NPM的NodeJS當我安裝在模塊的NodeJS人緣安裝因緣
npm http 304 https registry.npmjs.org/proto-list
> [email protected] install C:\Users\<user>\AppData\Roaming\npm\node_modules\karma-phantomjs-launcher\node_modules\phantomjs
> node install.js
Downloading http://phantomjs.googlecode.com/files/phantomjs-1.9.1-windows.zip
Saving to \tmp\phantomjs\phantomjs-1.9.1-windows.zip
Receiving...
C:\Users\<user>\AppData\Roaming\npm\node_modules\karma-phantomjs-launcher\node_modules\phantomjs\install.js:215
deferred.reject('Error with http request: ' + util.inspect(response.head
^
ReferenceError: util is not defined
at ClientRequest.<anonymous> (C:\Users\<user>\AppData\Roaming\npm\node_modules\karma-phantomjs-launcher\node_modules\phantomjs\install.js:215:53)
at ClientRequest.g (events.js:175:14)
at ClientRequest.EventEmitter.emit (events.js:95:17)
at HTTPParser.parserOnIncomingClient [as onIncoming] (http.js:1669:21)
at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:120:23)
at Socket.socketOnData [as ondata] (http.js:1564:20)
at TCP.onread (net.js:525:27)
npm ERR! weird error 8
npm ERR! not ok code 0
d:\nodejs>npm install util
npm http 304 https registry.npmjs.org/events.node
[email protected] node_modules\util
└── [email protected]
模塊UTIL已安裝。 爲什麼業障不安裝?
嘗試這個'npm install -g karma' – deepakb
是的,這是我的第一個命令) – user190364