Open martinmurciego opened 4 years ago
If you want to install globally, please use yarn, instead of npm.
$ yarn global add site-checker
If chromium installed by puppeteer fails to launch, there are not all dependencies in your system. see Chrome headless doesn't launch on UNIX
And you can use docker image, see README
After installing it with npm -g, I get an error:
sudo npm install -g site-checker
[sudo] contraseña para martin: npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. /usr/local/bin/site-checker -> /usr/local/lib/node_modules/site-checker/bin/cli.jsERROR: Failed to download Chromium r686378! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download. { Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/site-checker/node_modules/puppeteer/.local-chromium' -- ASYNC -- at BrowserFetcher. (/usr/local/lib/node_modules/site-checker/node_modules/puppeteer/lib/helper.js:111:15)
at Object. (/usr/local/lib/node_modules/site-checker/node_modules/puppeteer/install.js:64:16)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
errno: -13,
code: 'EACCES',
syscall: 'mkdir',
path:
'/usr/local/lib/node_modules/site-checker/node_modules/puppeteer/.local-chromium' }
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! puppeteer@1.20.0 install:
node install.js
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the puppeteer@1.20.0 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in: npm ERR! /home/martin/.npm/_logs/2020-01-07T03_47_51_863Z-debug.log