如何在ubuntu 14.04 os中安装电子?

时间:2016-06-22 12:42:51

标签: linux electron

我在Ubuntu 14.04中安装电子时遇到问题。我收到此错误代码

 install Couldn't read dependencies
npm ERR! Error: ENOENT, open '/home/vinitas/package.json'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Linux 4.2.0-36-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/vinitas
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /home/vinitas/package.json
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/vinitas/npm-debug.log
npm ERR! not ok code 0

1 个答案:

答案 0 :(得分:1)

您是在全球范围内安装吗?你可以使用

npm install -g electron