rhysd / NyaoVim

Web-enhanced Extensible Neovim Frontend
Other
2.22k stars 57 forks source link

Cannot install in Ubuntu 16.04 #138

Open qazip opened 6 years ago

qazip commented 6 years ago

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

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

> electron@1.8.2 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 flux@3.1.3 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! electron@1.8.2 postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the electron@1.8.2 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 commented 6 years ago

Could you try solution mentioned in https://github.com/rhysd/NyaoVim/issues/127 ?

qazip commented 6 years ago

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

> electron@1.8.4 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! electron@1.8.4 postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the electron@1.8.4 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Gsmalhotra1 commented 6 years ago

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

BernardMarieOnzo commented 6 years ago

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

neochar commented 6 years ago

https://github.com/rhysd/NyaoVim/issues/127#issuecomment-392573556