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

Cannot install in Ubuntu 16.04 #138

Open
qazip opened this issue Mar 4, 2018 · 5 comments
Open

Cannot install in Ubuntu 16.04 #138

qazip opened this issue Mar 4, 2018 · 5 comments

Comments

@qazip
Copy link

qazip commented Mar 4, 2018

This is the output I get, when trying to install NyaoVim.

/usr/bin/nyaovim -> /usr/lib/node_modules/nyaovim/bin/cli.js

> [email protected] postinstall /usr/lib/node_modules/nyaovim/node_modules/electron
> node install.js

/usr/lib/node_modules/nyaovim/node_modules/electron/install.js:47
  throw err
  ^

Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/nyaovim/node_modules/electron/.electron'
npm WARN [email protected] requires a peer of react@^15.0.2 || ^16.0.0-beta || ^16.0.0 but none is installed. You must install peer dependencies yourself.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] postinstall 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/user/.npm/_logs/2018-03-04T17_19_22_537Z-debug.log

@r00m00n
Copy link

r00m00n commented Mar 17, 2018

Could you try solution mentioned in #127 ?

@qazip
Copy link
Author

qazip commented Mar 18, 2018

What solution? There is no solution in that issue. If you mean sudo npm i -g electron, then no, it doesnt work:

/usr/bin/electron -> /usr/lib/node_modules/electron/cli.js

> [email protected] postinstall /usr/lib/node_modules/electron
> node install.js

/usr/lib/node_modules/electron/install.js:47
  throw err
  ^

Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/electron/.electron'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.



@Gsmalhotra1
Copy link

Gsmalhotra1 commented Apr 2, 2018

@qazip : I have same kind of problem , I have changed node js version to 6.9.3 , then install again, it works.

@BernardMarieOnzo
Copy link

me, i have try this sudo npm install -g nyaovim --unsafe-perm=true --allow-root but it's still not work too

@neochar
Copy link

neochar commented May 28, 2018

#127 (comment)

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