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

[email protected] error #226

Open
Ryjekk opened this issue Apr 3, 2020 · 4 comments
Open

[email protected] error #226

Ryjekk opened this issue Apr 3, 2020 · 4 comments

Comments

@Ryjekk
Copy link

Ryjekk commented Apr 3, 2020

hello guys, during install, I get this error :
Any clue why?

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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!     /Users/inuk/.npm/_logs/2020-04-03T10_23_55_057Z-debug.log
@anth-volk
Copy link

I, too, have had this issue on an up-to-date version of Manjaro Linux.

@jakewilliami
Copy link

I have this error too on my MBP running Mojave:

npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
/usr/local/bin/fb-messenger-cli -> /usr/local/lib/node_modules/fb-messenger-cli/cli.js

> [email protected] install /usr/local/lib/node_modules/fb-messenger-cli/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/local/lib/node_modules/fb-messenger-cli/node_modules/puppeteer/.local-chromium'
  -- ASYNC --
    at BrowserFetcher.<anonymous> (/usr/local/lib/node_modules/fb-messenger-cli/node_modules/puppeteer/lib/helper.js:111:15)
    at Object.<anonymous> (/usr/local/lib/node_modules/fb-messenger-cli/node_modules/puppeteer/install.js:64:16)
    at Module._compile (internal/modules/cjs/loader.js:1147:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1167:10)
    at Module.load (internal/modules/cjs/loader.js:996:32)
    at Function.Module._load (internal/modules/cjs/loader.js:896: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/local/lib/node_modules/fb-messenger-cli/node_modules/puppeteer/.local-chromium'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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!     /Users/jakewilliami/.npm/_logs/2020-04-20T10_33_43_194Z-debug.log

@Mazurel
Copy link

Mazurel commented May 7, 2020

For anyone still having this issue, just use:
sudo npm install -g fb-messenger-cli --unsafe-perm=true
it should fix mkdir problem (solution based on this).

Also, you may have a problem with write permission in "/usr/lib/node_modules/fb-messenger-cli/" folder, in which case just use chmod.
For example: sudo chmod a+rw /usr/lib/node_modules/fb-messenger-cli/

@Nemesis77swe
Copy link

Still an issue, but @Mazurel workaround works fine..

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

5 participants