How to Install highlight.js NPM Packages on Ubuntu / Debian

How to Install highlight.js software package in NPM Packages

highlight.js : Syntax highlighting with language autodetection.. You can installing highlight.js 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 highlight.js
$ sudo npm install -g highlight.js

If want to update the highlight.js package execute the command as below,

$ sudo npm update highlight.js

Update package globally,

$ npm install -g highlight.js

Git clone:

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

highlight.js@9.12.0 /usr/lib/node_modules/highlight.js

How to remove highlight.js package :

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

$ sudo npm uninstall highlight.js

Basic Information of highlight.js NPM Package:

Package Name highlight.js
Version 9.12.0
Description Syntax highlighting with language autodetection.
Released Date 2017-05-31T02:47:35.760Z
Published by isagalaev
How to Learn https://www.npmjs.com/package/highlight.js/tutorial