How to Install sockjs NPM Packages on Ubuntu / Debian

How to Install sockjs software package in NPM Packages

sockjs : SockJS-node is a server counterpart of SockJS-client a JavaScript library that provides a WebSocket-like object in the browser. SockJS gives you a coherent, cross-browser, Javascript API which creates a low latency, full duplex, cross-domain communication. You can installing sockjs npm packages, there are two ways to install this module locally and globaly. -g option is specified to global. Execute the below command.

$ sudo npm install sockjs
$ sudo npm install -g sockjs

If want to update the sockjs package execute the command as below,

$ sudo npm update sockjs

Update package globally,

$ npm install -g sockjs

Git clone:

$ sudo  git clone https://github.com/rektide/sockjs.git
$ sudo  npm install -g ./sockjs

sockjs@0.3.19 /usr/lib/node_modules/sockjs

How to remove sockjs package :

You can uninstall or remove this package from your node_modules run the command as below,

$ sudo npm uninstall sockjs

Basic Information of sockjs NPM Package:

Package Name sockjs
Version 0.3.19
Description SockJS-node is a server counterpart of SockJS-client a JavaScript library that provides a WebSocket-like object in the browser. SockJS gives you a coherent, cross-browser, Javascript API which creates a low latency, full duplex, cross-domain communication
Released Date 2017-10-12T16:23:58.269Z
Published by brycekahle
How to Learn https://www.npmjs.com/package/sockjs/tutorial