Fresh Xubuntu Install | NODEJS 10 | Fails to install on puppeteer
- Dominant language
- JavaScript
- Stars
- 7.2k
- Forks
- 621
- PR merge metrics
- No merged PRs in 30d
Description
```
sudo npm install -g backstopjs
npm WARN deprecated core-js@2.6.10: core-js@<3.0 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/bin/backstop -> /usr/lib/node_modules/backstopjs/cli/index.js
> puppeteer@1.20.0 install /usr/lib/node_modules/backstopjs/node_modules/puppeteer
> node install.js
ERROR: Failed to download Chromium r686378! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.
{ Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/backstopjs/node_modules/puppeteer/.local-chromium'
-- ASYNC --
at BrowserFetcher. (/usr/lib/node_modules/backstopjs/node_modules/puppeteer/lib/helper.js:111:15)
at Object. (/usr/lib/node_modules/backstopjs/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:623:3)
errno: -13,
code: 'EACCES',
syscall: 'mkdir',
path:
'/usr/lib/node_modules/backstopjs/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/lilithe/.npm/_logs/2019-11-22T21_03_44_589Z-debug.log
```
Contributor guide
Research direction
Start by reproducing the global `npm install -g backstopjs` command on a fresh Xubuntu installation with NodeJS 10, then inspect the Puppeteer `install.js` failure and the reported `.local-chromium` permission path. Done means determining whether the installation can complete reliably or documenting the required supported setup and workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100