Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Unable to install dev dependencies, socket.io 0.6.18 is broke. #243

Closed
brianloveswords opened this Issue · 3 comments

4 participants

@brianloveswords

Trying to do a straight up npm install -d give me this trash:

± npm install -d
npm info it worked if it ends with ok
npm info using npm@1.1.21
npm info using node@v0.6.17
npm info preinstall http-proxy@0.8.0
npm http GET https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/pkginfo
npm http GET https://registry.npmjs.org/vows
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/socket.io
npm http 304 https://registry.npmjs.org/optimist
npm http 304 https://registry.npmjs.org/colors
npm http 304 https://registry.npmjs.org/pkginfo
npm http 304 https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/vows
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/socket.io
npm http GET https://registry.npmjs.org/socket.io/-/socket.io-0.6.18.tgz
npm http 200 https://registry.npmjs.org/socket.io/-/socket.io-0.6.18.tgz
npm info shasum 066dce544eebd9536a61fe08ff44e2e3bbfd8211
npm info shasum /tmp/npm-1336744651170/1336744651170-0.11553361313417554/tmp.tgz
npm ERR! error reading /tmp/npm-1336744651170/1336744651170-0.11553361313417554/package
npm ERR! couldn't pack /tmp/npm-1336744651170/1336744651170-0.11553361313417554/package to /home/brian/.npm/socket.io/0.6.18/package.tgz

npm ERR! SyntaxError: Unexpected token }
npm ERR!     at Object.parse (native)
npm ERR!     at Packer.readRules (/usr/local/lib/node_modules/npm/node_modules/fstream-npm/fstream-npm.js:179:33)
npm ERR!     at Packer.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/ignore.js:132:22)
npm ERR!     at [object Object].<anonymous> (fs.js:123:5)
npm ERR!     at [object Object].emit (events.js:64:17)
npm ERR!     at fs.js:1187:12
npm ERR!     at Object.oncomplete (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:94:5)
npm ERR! You may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>
npm ERR! 
npm ERR! System Linux 3.0.18-linode43
npm ERR! command "node" "/usr/local/bin/npm" "install" "-d"
npm ERR! cwd /home/brian/dev/node-http-proxy
npm ERR! node -v v0.6.17
npm ERR! npm -v 1.1.21
npm ERR! file /tmp/npm-1336744651170/1336744651170-0.11553361313417554/package/support/socket.io-client/lib/vendor/uglifyjs/package.json
npm ERR! path /tmp/npm-1336744651170/1336744651170-0.11553361313417554/package/support/socket.io-client/lib/vendor/uglifyjs
npm ERR! type unexpected_token
npm ERR! fstream_path /tmp/npm-1336744651170/1336744651170-0.11553361313417554/package/support/socket.io-client/lib/vendor/uglifyjs
npm ERR! fstream_type Directory
npm ERR! fstream_class Packer
npm ERR! arguments [ '}' ]
npm ERR! message Unexpected token }
npm ERR! fstream_stack Packer.readRules (/usr/local/lib/node_modules/npm/node_modules/fstream-npm/fstream-npm.js:182:10)
npm ERR! fstream_stack Packer.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/ignore.js:132:22)
npm ERR! fstream_stack [object Object].<anonymous> (fs.js:123:5)
npm ERR! fstream_stack [object Object].emit (events.js:64:17)
npm ERR! fstream_stack fs.js:1187:12
npm ERR! fstream_stack Object.oncomplete (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:94:5)

npm ERR! TypeError: Cannot call method 'filter' of undefined
npm ERR!     at Packer.addIgnoreRules (/usr/local/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/ignore.js:148:13)
npm ERR!     at Packer.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/ignore.js:133:10)
npm ERR!     at [object Object].<anonymous> (fs.js:123:5)
npm ERR!     at [object Object].emit (events.js:64:17)
npm ERR!     at fs.js:1187:12
npm ERR!     at Object.oncomplete (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:94:5)
npm ERR! You may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>
npm ERR! 
npm ERR! System Linux 3.0.18-linode43
npm ERR! command "node" "/usr/local/bin/npm" "install" "-d"
npm ERR! cwd /home/brian/dev/node-http-proxy
npm ERR! node -v v0.6.17
npm ERR! npm -v 1.1.21
npm ERR! type non_object_property_call
npm ERR! arguments [ 'filter', undefined ]
npm ERR! message Cannot call method 'filter' of undefined
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/brian/dev/node-http-proxy/npm-debug.log
npm not ok

Ugh, what a mess. Narrowed down the problem to socket.io@0.6.18. If install socket.io@0.6.17 first, then do npm install -d, everything's gravytown.

You should probably hardcode 0.6.17 in package.json for now, but do you want me to look at potentially updating the tests to the latest stable versions of the packages (~0.9.6 for socket.io, ~2.9.202 for request)?

@coderarity

Yeah, seriously. I'm working on upgrading tests to Socket.io 0.9.x.

@brianloveswords

@CodeRarity Awesome dude. You want me to try to tackle request or are you handling that as well?

@bts

FYI #233 has a change hard-coding to 0.6.17 until 0.9.x is supported

@cronopio cronopio closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.