xhr2 : XMLHttpRequest emulation for node.js. You can installing xhr2 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 xhr2 $ sudo npm install -g xhr2
If want to update the xhr2 package execute the command as below,
$ sudo npm update xhr2
Update package globally,
$ npm install -g xhr2
$ sudo git clone https://github.com/rektide/xhr2.git
$ sudo npm install -g ./xhr2
xhr2@0.1.4 /usr/lib/node_modules/xhr2
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall xhr2
| Package Name | xhr2 |
| Version | 0.1.4 |
| Description | XMLHttpRequest emulation for node.js |
| Released Date | 2017-01-06T22:53:08.659Z |
| Published by | pwnall |
| How to Learn | https://www.npmjs.com/package/xhr2/tutorial |