Mac电脑上使用VSCode安装jshint插件时提示如下错误:

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.

VSCode安装jshint插件报错

按照提示,使用npm安装jshint

npm install -g jshint

VSCode安装jshint插件报错

然后点击重试,即大功告成

相关文章: