Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install ESlint with no npm?

I am working on enterprise computer with no internet access nor node (npm). I have downloaded ESlint manually and installed it to VS Code. Now it says that i need to use npm command for it to work, my question is how can i run ESlint globally without npm command/Node? Is it possible?

This what i get:

To use ESLint please install eslint by running npm install eslint in the workspace folder Supreme

or globally using 'npm install -g eslint'. You need to reopen the workspace after installing eslint.

after trying to set it right i get:

PS C:\inetpub\wwwroot\Supreme> eslint --init

eslint : The term 'eslint' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try

like image 267
yanivz Avatar asked Oct 18 '25 01:10

yanivz


1 Answers

I have created a Github repo for creating a tailored Eslint standalone binary here: Eslint-Standalone

This uses node, npm and pkg to build a eslint tool into a binary, such as an exe for win platform. You can then use that exe and copy it into your network at work with restrictions when it comes to npm.

like image 125
Tore Aurstad Avatar answered Oct 20 '25 17:10

Tore Aurstad



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!