Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

Replace unpublished websocket-server #149

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

loginwashere
Copy link

Tried to install cube but installation failed with this message

$ npm install
npm ERR! 404 Not Found
npm ERR! 404 
npm ERR! 404 'websocket-server' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 It was specified as a dependency of 'cube'
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.

npm ERR! System Linux 3.2.0-23-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /home/vagrant/cube
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! code E404
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/vagrant/cube/npm-debug.log
npm ERR! not ok code 0

After that I searched npm for websocket-server https://www.npmjs.org/package/websocket-server and found out that this package was unpublished.

Also in search results I found package https://www.npmjs.org/package/node-websocket-server which has in description mention that package replaces websocket-server.

So I decided to fix this issue replacing websocket-server with node-websocket-server.

@ThisIsMissEm
Copy link

The package node-websocket-server should be unpublished for the same reason that websocket-server was (I'm the original author of websocket-server). The project has been marked as deprecated in NPM for the last 6 months, and the project on Github was pretty much abandoned 3 years ago.

I would suggest this project switch to the ws module, which provides support for the later versions of the websocket protocol (hixie-draft-76, HyBi drafts 07-12, HyBi drafts 13-17). The ws module features an interface fairly similar to websocket-server.

@loginwashere
Copy link
Author

Thanks for the explanation

@mtotheikle
Copy link

@loginwashere any luck solving this to get Cube installed? Did you up up just using the node-websocket-server module?

@loginwashere
Copy link
Author

@miksago at the moment I don't have time to replace websocket-server with ws (and I don't think I would have time for this in near future) so I use cube from this pull request with websocket-server replaced with node-websocket-server

@paco3346
Copy link

paco3346 commented Nov 5, 2014

So, is it possible to least get something published? I realize using node-websocket-server isn't the best option but I think that's better than getting a 404.

@ThisIsMissEm
Copy link

@paco3346 why not just pull request this project to switch it to 'ws'?

cwarden added a commit to greatvines/cube that referenced this pull request Feb 25, 2015
Import websocket-server source into cube because it is deprecated and
has been unpublished from npm.  The ws package is a recommended
replacement.  See square#149
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants