Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access permissions bug #1

Open
sxiii opened this issue Feb 5, 2020 · 0 comments
Open

Access permissions bug #1

sxiii opened this issue Feb 5, 2020 · 0 comments

Comments

@sxiii
Copy link

sxiii commented Feb 5, 2020

Hi!

Trying to make the code work:

sudo npm i -g wappalyzer-puppeteer

/usr/bin/wappalyzer-puppeteer -> /usr/lib/node_modules/wappalyzer-puppeteer/cli.js

> puppeteer@2.1.0 install /usr/lib/node_modules/wappalyzer-puppeteer/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/wappalyzer-puppeteer/node_modules/puppeteer/.local-chromium'
  -- ASYNC --
    at BrowserFetcher.<anonymous> (/usr/lib/node_modules/wappalyzer-puppeteer/node_modules/puppeteer/lib/helper.js:111:15)
    at Object.<anonymous> (/usr/lib/node_modules/wappalyzer-puppeteer/node_modules/puppeteer/install.js:62:16)
    at Module._compile (internal/modules/cjs/loader.js:1151:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1171:10)
    at Module.load (internal/modules/cjs/loader.js:1000:32)
    at Function.Module._load (internal/modules/cjs/loader.js:899:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
    at internal/main/run_main_module.js:17:47 {
  errno: -13,
  code: 'EACCES',
  syscall: 'mkdir',
  path: '/usr/lib/node_modules/wappalyzer-puppeteer/node_modules/puppeteer/.local-chromium'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! puppeteer@2.1.0 install: `node install.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the puppeteer@2.1.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!     /root/.npm/_logs/2020-02-05T11_07_09_626Z-debug.log

debug.log github gist

Any ideas? If I run this from root account; same happens.

NB: this does not help:

sudo mkdir -p /usr/lib/node_modules/wappalyzer-puppeteer/node_modules/puppeteer/
sudo chmod -R 777 /usr/lib/node_modules/wappalyzer-puppeteer/node_modules/puppeteer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant