How to Install preact NPM Packages on Ubuntu / Debian

How to Install preact software package in NPM Packages

preact : Fast 3kb React alternative with the same ES6 API. Components & Virtual DOM.. You can installing preact 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 preact
$ sudo npm install -g preact

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

$ sudo npm update preact

Update package globally,

$ npm install -g preact

Git clone:

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

preact@8.2.6 /usr/lib/node_modules/preact

How to remove preact package :

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

$ sudo npm uninstall preact

Basic Information of preact NPM Package:

Package Name preact
Version 8.2.6
Description Fast 3kb React alternative with the same ES6 API. Components & Virtual DOM.
Released Date 2017-10-24T16:20:54.004Z
Published by developit
How to Learn https://www.npmjs.com/package/preact/tutorial