1 Star 0 Fork 0

MarkLewis/electron-prebuilt

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.js 338 Bytes
一键复制 编辑 原始数据 按行查看 历史
Zeke Sikelianos 提交于 2017-02-09 03:36 +08:00 . hardcode module path in error message
var fs = require('fs')
var path = require('path')
var pathFile = path.join(__dirname, 'path.txt')
if (fs.existsSync(pathFile)) {
module.exports = path.join(__dirname, fs.readFileSync(pathFile, 'utf-8'))
} else {
throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again')
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/marklewis/electron-prebuilt.git
git@gitee.com:marklewis/electron-prebuilt.git
marklewis
electron-prebuilt
electron-prebuilt
master

搜索帮助