我在 Ubuntu 14.04 中安装 Electron 时遇到问题。我收到此错误代码
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
最佳答案
您是在全局安装它吗?你可以使用
npm install -g electron
关于linux - 如何在 ubuntu 14.04 操作系统中安装 electron?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37968373/