Installing pagedjs-cli centos 7
Hi there,
I am trying to install the pagedjs-cli using the following:
sudo npm install -g pagedjs-cli
I got the following error.
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.
npm WARN deprecated mkdirp@0.5.4: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
/usr/bin/pagedjs-cli -> /usr/lib/node_modules/pagedjs-cli/bin/paged
> puppeteer@2.1.1 install /usr/lib/node_modules/pagedjs-cli/node_modules/puppeteer
> node install.js
ERROR: Failed to download Chromium r722234! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.
Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/pagedjs-cli/node_modules/puppeteer/.local-chromium'
-- ASYNC --
at BrowserFetcher.<anonymous> (/usr/lib/node_modules/pagedjs-cli/node_modules/puppeteer/lib/helper.js:111:15)
at Object.<anonymous> (/usr/lib/node_modules/pagedjs-cli/node_modules/puppeteer/install.js:66:16)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
at internal/main/run_main_module.js:18:47 {
errno: -13,
code: 'EACCES',
syscall: 'mkdir',
path: '/usr/lib/node_modules/pagedjs-cli/node_modules/puppeteer/.local-chromium'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! puppeteer@2.1.1 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the puppeteer@2.1.1 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! /root/.npm/_logs/2020-03-25T06_01_28_568Z-debug.log
I didn't get any issues with installation of pagejs
sudo npm install -g pagedjs
I was able to successfully do the same installations in my development macbook machine. Now I am stuck with these issues when I am trying to install the same in the production centos boxes.
Please help with this at your earliest...
Thanks, Hameed