You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to test the HTMLHint code locally on my HTML files, how can i do that? I have cloned the HTMLHint code and installed it into my HTML File folder using npm install path-to-fullPathToHtmlHintPackage . Now when i do ./node_modules/.bin/htmlhint index.html (index.html is a file in another folder where i have installed htmlHint using the command above), it shows me an error :
internal/modules/cjs/loader.js:883
throw err;
^
Error: Cannot find module '../dist/cli/htmlhint'
Require stack:
- /Users/username/Desktop/Test/HTMLHint/HTMLHint/bin/htmlhint
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (/Users/username/Desktop/Test/HTMLHint/HTMLHint/bin/htmlhint:4:1)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/Users/username/Desktop/Test/HTMLHint/HTMLHint/bin/htmlhint' ]
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to test the HTMLHint code locally on my HTML files, how can i do that? I have cloned the HTMLHint code and installed it into my HTML File folder using npm install path-to-fullPathToHtmlHintPackage . Now when i do ./node_modules/.bin/htmlhint index.html (index.html is a file in another folder where i have installed htmlHint using the command above), it shows me an error :
Beta Was this translation helpful? Give feedback.
All reactions