1
jshint : File C:\Users\Balarka\AppData\Roaming\npm\jshint.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 + jshint app.js + ~~~~~~ + CategoryInfo : SecurityError: (:) [], PSSecurityException + FullyQualifiedErrorId : UnauthorizedAccess 
2

2 Answers 2

2

You can use:

Set-ExecutionPolicy -ExecutionPolicy Undefined -Scope LocalMachine 

or:

Set-ExecutionPolicy -ExecutionPolicy Undefined -Scope CurrentUser 

You should enter these commands as Administrator.

Sign up to request clarification or add additional context in comments.

2 Comments

I recommend you add some context as to what these commands do, especially what the 'Undefined' execution policy means.
Please provide additional details in your answer. As it's currently written, it's hard to understand your solution.
0

There's an answer that was referenced here: https://stackoverflow.com/a/59244943/11518388

Alternatively, you could also edit the properties for Visual Studio Code (right-click on the shortcut, click properties) and force it to always run as an administrator.

enter image description here

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.