Nodejs npm install karma

When I installed karma in nodejs modules, in my log written this: npm http 304 https registry.npmjs.org/proto-list > phantomjs@1.9.1-5 install C:\Users\\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\\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. (C:\Users\\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 module util already installed. Why karma not installing?
Try this npm install -g karma

以上就是Nodejs npm install karma的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » Node.js答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏