syntax-error : detect and report syntax errors in source code strings. You can installing syntax-error 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 syntax-error $ sudo npm install -g syntax-error
If want to update the syntax-error package execute the command as below,
$ sudo npm update syntax-error
Update package globally,
$ npm install -g syntax-error
$ sudo git clone https://github.com/rektide/syntax-error.git
$ sudo npm install -g ./syntax-error
syntax-error@1.3.0 /usr/lib/node_modules/syntax-error
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall syntax-error
| Package Name | syntax-error |
| Version | 1.3.0 |
| Description | detect and report syntax errors in source code strings |
| Released Date | 2017-03-01T22:45:15.024Z |
| Published by | substack |
| How to Learn | https://www.npmjs.com/package/syntax-error/tutorial |