Open opencao opened 5 years ago
npm install electron
thank you . now ,i have other question. Failed to load module "canberra-gtk-module"
sudo apt-get install libcanberra-gtk-module
你好,在将hexoeditor部署到服务器后如何启动呢?我执行npm start报错,显示(electron:26124): Gtk-WARNING **: 10:09:41.534: cannot open display:
11:37 $ npm start
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