Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ES lint init setup not shown VS Code Windows OS

I trying to set up the Eslint in VS Code IDE, however after installing the eslint dependency, by $ npm install eslint --save-dev command then executing the below command for configuration

$ ./node_modules/.bin/eslint --init

getting the following error, what is the problem?

eslint : File \AppData\Roaming\npm\eslint.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. At line:1 char:1 + eslint --init + ~~~~~~ + CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess

like image 570
mathan Avatar asked Mar 11 '26 09:03

mathan


1 Answers

In your powershell you might need to execute

Set-ExecutionPolicy RemoteSigned

Try

npx eslint --init

Also what is the output with

npm run eslint --init
like image 178
Ayushya Avatar answered Mar 12 '26 22:03

Ayushya



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!