vscode-eslint: Failed to load eslint library. Please install eslint in your workspace folder using 'npm install eslint' or globally using 'npm install -g eslint' and then pres
From @Ciget on February 10, 2016 21:56
Hi folks,
I several time during using VS Code see error like this:
Failed to load eslint library. Please install eslint in your workspace folder using ‘npm install eslint’ or globally using ‘npm install -g eslint’ and then pres
Of course i`ve tried to install it locally and globally as well, but no result - still the same error. My OS - Windows 10. Version of VS Code - 0.10.8
Does somebody has the same issue and maybe you have thoughts how to fix it? Thanks.
Copied from original issue: Microsoft/vscode#2909
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 36 (12 by maintainers)
The ESLint extension has currently no support for globally install eslint module via yarn. I opened: https://github.com/Microsoft/vscode-eslint/issues/187
After
chsh -s /bin/zsh
, reboot the mac osx, then the vscode will detect the default shell to ‘zsh’, then the global installed ‘eslint’ will be found.I have a different case but with the same error. By the way I tested my project that is using
eslint
is it is working for me (I installed it locally).My case is when opening a project that does not have
package.json
,eslint
not installed, and there are no
.eslintrcor
.eslintrc.*in the project. In this case the
vscode-eslint` should not be activated.