zhuzhuyule / HexoEditor

this markdown Editor for hexo blog
GNU General Public License v3.0
1.22k stars 151 forks source link

安装完git和node之后进行npm start 报错,报错如下 #71

Open opencao opened 5 years ago

opencao commented 5 years ago

11:37 $ npm start

HexoEditor@1.5.30 start /home/opencao/software/HexoEditor/HexoEditor electron .

sh: 1: electron: not found npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR! HexoEditor@1.5.30 start: electron . npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the HexoEditor@1.5.30 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in: npm ERR! /home/opencao/software/nodejs/npm_cache/_logs/2019-04-30T03_38_00_336Z-debug.log

YuzukiTsuru commented 5 years ago

npm install electron

opencao commented 5 years ago

thank you . now ,i have other question. Failed to load module "canberra-gtk-module"

YuzukiTsuru commented 5 years ago
sudo apt-get install libcanberra-gtk-module
mtcz91 commented 4 years ago

你好,在将hexoeditor部署到服务器后如何启动呢?我执行npm start报错,显示(electron:26124): Gtk-WARNING **: 10:09:41.534: cannot open display: