microsoft / vscode-jshint

VSCode extension to integrate jshint into VSCode
https://marketplace.visualstudio.com/items?itemName=dbaeumer.jshint
MIT License
72 stars 48 forks source link

Not able to install JShint extension and getting error message "Failed to load JShint library" #32

Open v-pavanp opened 8 years ago

v-pavanp commented 8 years ago

VSCode version: 1.1.0-alpha OS: Windows10

Steps to Reproduce:

  1. Launch app and try to install JShint extension.
  2. Verify user should get success message.
  3. Click on reload and verify from the installed extensions list.

Actual getting error message : "Failed to load jshint library. Please install jshint in your workspace folder "

jshintextensioninstallerror

Error message from Developer tool: messageService.ts:119 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.e.doShow @ messageService.ts:119e.show @ messageService.ts:103(anonymous function) @ extHostMessageService.ts:88__dirname.undefined.t.Class.derive._oncancel @ winjs.base.raw.js:1901e.$showMessage @ extHostMessageService.ts:58e.handle @ abstractThreadService.ts:100s @ ipcRemoteCom.ts:269f @ ipcRemoteCom.ts:226_combinedTickCallback @ internal/process/next_tick.js:67_tickCallback @ internal/process/next_tick.js:98 shell

iomier commented 8 years ago

admin access

josefnorlin commented 7 years ago

Same problem here running Ubuntu 16.04 even with sudo:

npm WARN enoent ENOENT: no such file or directory, open '/home/joe/Dropbox/Projects/ePlanket/src/packag e.json' npm WARN src No description npm WARN src No repository field. npm WARN src No README data npm WARN src No license field.

AhsenBaig commented 6 years ago

Ran into the same issue so did what the warning suggested:

Please install jshint in your workspace folder using npm install jshint or globally using npm install -g jshint

Still annoying that we have to do this manually.

jaysalhan commented 4 years ago

I faced the similar issue and i resolved it recently. Uninstall jshint and js lint extensions from vs code. Then install node.js latest version. Then install jslint and jshint with the help of nodejs cmd by typing "npm install -g jshint/jslint". Once you are done then go to vscode and install jshint and jslint extensions. Reload the vscode. You are done.

duzun commented 3 years ago

I'm having the same issue on Linux Manjaro using volta. Can't solve it.