当我在 nodejs 模块中安装业力时,在我的日志中写道:
npm http 304 https registry.npmjs.org/proto-list
> phantomjs@1.9.1-5 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
util@0.4.9 node_modules\util
└── events.node@0.4.9
模块工具已经安装。为什么没有安装业力?