Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code Error - Failed to load jshint library

Every time Visual Studio Code started or loaded it shows an error message: "Failed to load jshint library. Please install jshint in your workspace folder using 'npm install jshint' or globally using 'npm install -g jshint' and then press Retry". Is there any solution available?

like image 353
ratulalahy Avatar asked May 01 '16 10:05

ratulalahy


People also ask

How do I enable JSHint in Vscode?

In order to disable jshint for a workspace specify "jshint. enable" : false in the workspace settings. jshint is enabled by default.

What is JSHint library?

JSHint is a program that flags suspicious usage in programs written in JavaScript. The core project consists of a library itself as well as a CLI program distributed as a Node module.

How do I add JSHint?

To install the JSHint tool, run the command npm install jshint in CLI. If you want to check if JSHint has been successfully installed, run the command jshint -version to see its version. Once this step is over, installation is complete.

What is JSHint extension?

JSHint is an open source tool which detects errors and potential problems in JavaScript code. To lint your JavaScript you have two options. Go to JSHint.com and paste your code in there on line text editor. Install JSHint in your IDE. Atom: linter-jshint (must have Linter plugin installed)


1 Answers

You'll need to follow the prompt and install jshint.

For just the workspace npm install jshint

or

For all your workspaces npm install -g jshint

like image 65
Wade Anderson Avatar answered Sep 30 '22 03:09

Wade Anderson