shama/nodewebkit

npm install fails

rahatarmanahmed opened this issue · 1 comments

I'm not sure why this is happening on only some of my computers, but..


c:\Users\Rahat\Git\google-play-music-wrapper\node_modules\nodewebkit\node_modules\download\index.js:70
            if (opts.extract && (decompress.canExtract(opts.url, mime) || opts
                                            ^
TypeError: Object function Decompress() {
    this.ware = new Ware();
} has no method 'canExtract'
    at Request.<anonymous> (c:\Users\Rahat\Git\google-play-music-wrapper\node_modules\nodewebkit\node_modules\download\index.js:70:45)
    at Request.EventEmitter.emit (events.js:95:17)
    at Request.onResponse (c:\Users\Rahat\Git\google-play-music-wrapper\node_modules\nodewebkit\node_modules\request\request.js:986:10)
    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

Seems to happen due to a stupid bug in newer versions of the package download which calls canExtract on the package decompress, but decompress doesn't have that function in its newer versions. Solution is to use download version < 0.1.14 I think?

Never mind it works now somehow? I don't know what fixed it.