Could not run Lighthouse. Error : sh: line 0: exec: node: not found
#44
Unanswered
saxin-chawla
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I am running the code on hostinger server then getting error : Could not run Lighthouse. Error :
sh: line 0: exec: node: not found
and on localhost same code throwing diff error:
Could not run Lighthouse. Error :
node:internal/process/promises:289 triggerUncaughtException(err, true /* fromPromise */); ^ ChromeNotInstalledError at new LauncherError (file:///C:/xampp/htdocs/website_grader/node_modules/chrome-launcher/dist/utils.js:22:22) at new ChromeNotInstalledError (file:///C:/xampp/htdocs/website_grader/node_modules/chrome-launcher/dist/utils.js:49:9) at Launcher.launch (file:///C:/xampp/htdocs/website_grader/node_modules/chrome-launcher/dist/chrome-launcher.js:192:23) at Module.launch (file:///C:/xampp/htdocs/website_grader/node_modules/chrome-launcher/dist/chrome-launcher.js:33:20) at C:\xampp\htdocs\website_grader\vendor\spatie\lighthouse-php\bin\lighthouse.js:7:41 { message: 'No Chrome installations found.', code: 'ERR_LAUNCHER_NOT_INSTALLED' } Node.js v20.11.0
Attaching the code structure image
Please help me with it
Beta Was this translation helpful? Give feedback.
All reactions