AtomLinter / linter-htmlhint

Linter plugin for html, using htmlhint
40 stars 19 forks source link

Uncaught Error: Cannot find module 'jshint' #261

Open cike534222598 opened 4 years ago

cike534222598 commented 4 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.41.0 x64 Electron: 4.2.7 OS: Unknown Windows version Thrown From: linter-htmlhint package 1.6.3

Stack Trace

Uncaught Error: Cannot find module 'jshint'

At internal/modules/cjs/loader.js:586

Error: Cannot find module 'jshint'
    at Module._resolveFilename (internal/modules/cjs/loader.js:584:15)
    at Module._resolveFilename (~/AppData/Local/atom/app-1.41.0/resources/electron.asar/common/reset-search-paths.js:43:12)
    at Function.get_Module._resolveFilename (~/AppData/Local/atom/app-1.41.0/resources/app/static/<embedded>:11:155413)
    at Module.require (/app.asar/static/index.js:61:43)
    at require (~/AppData/Local/atom/app-1.41.0/resources/app/static/<embedded>:11:146745)
    at /packages/linter-htmlhint/node_modules/htmlhint/dist/htmlhint.js:1:257
    at /packages/linter-htmlhint/node_modules/htmlhint/dist/htmlhint.js:1:460)
    at /packages/linter-htmlhint/node_modules/htmlhint/dist/htmlhint.js:2:3)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.41.0/resources/app/static/<embedded>:11:147429)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.41.0/resources/app/static/<embedded>:11:150977)
    at Module.load (internal/modules/cjs/loader.js:602:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
    at Function.Module._load (internal/modules/cjs/loader.js:533:3)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (~/AppData/Local/atom/app-1.41.0/resources/app/static/<embedded>:11:146745)
    at /packages/linter-htmlhint/lib/index.js:59:28
    at loadDeps (/packages/linter-htmlhint/lib/index.js:63:8)
    at installLinterHtmlhintDeps (/packages/linter-htmlhint/lib/index.js:89:7)

Commands

Non-Core Packages

atom-html-preview 0.2.6 
atom-react-autocomplete 0.1.10 
atom-ternjs 0.20.0 
autocomplete-js-import 1.4.0 
autocomplete-modules 2.3.0 
autocomplete-paths 2.12.2 
busy-signal 2.0.1 
emmet 2.4.3 
emmet-jsx-css-modules 1.0.0 
file-icons 2.1.39 
file-types 1.0.1 
haskell-grammar 0.4.0 
highlight-selected 0.17.0 
hyperclick 0.1.5 
intentions 1.1.5 
js-hyperclick 1.13.3 
language-babel 2.85.0 
language-graphql 1.0.0 
language-ini 1.23.0 
language-javascript-jsx 0.3.7 
language-lua 0.9.11 
language-ocaml 1.9.5 
language-rust 0.4.12 
language-thrift 1.0.2 
linter 2.3.1 
linter-csslint 2.0.6 
linter-htmlhint 1.6.3 
linter-ui-default 1.8.1 
MagicPython 1.1.1 
merge-conflicts 1.4.5 
minimap 4.29.9 
nuclide-format-js 0.0.47 
react-snippets 1.2.0 
set-syntax 0.4.0 
sort-lines 0.19.0 
sync-settings 4.3.1 
tool-bar 1.2.0