linux - 如何在 ubuntu 14.04 操作系统中安装 electron?

标签 linux electron

我在 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/

相关文章:

c++ - 程序 (nload) 在 shell 中执行时作为守护进程运行,但不在启动/自动化脚本中执行

linux - 2 关于linux内核内存检查点的问题(自定义实现)

c - 在 mkfifo 中授予 super 用户进程的权限

linux - apt-get 没有安装任何 linux 服务器

在 macOS 上使用 Swift 和 Electron

node.js - 无法读取未定义的属性 'createSnapshot'

python - 无法使用 termios.TIOCSTI 伪造终端输入

electron - Electron 预加载器脚本中的访问路径如何?

javascript - electron-builder 是否会使用它不需要的依赖项

electron - 窗口未显示任何文本