evolvelabs / electron-updater-sample Goto Github PK
View Code? Open in Web Editor NEWSample application for the electron-updater module.
License: MIT License
Sample application for the electron-updater module.
License: MIT License
[Window Title]
Error
[Main Instruction]
A JavaScript error occurred in the main process
[Content]
Uncaught Exception:
Error: Cannot find module 'app'
at Module._resolveFilename (module.js:455:15)
at Function.Module._resolveFilename (C:\Users\AppData\Roaming\npm\node_modules.electron-prebuilt_npminstall\electron-prebuilt\1.4.3\electron-prebuilt\dist\resources\electron.asar\common\reset-search-paths.js:35:12)
at Function.Module._load (module.js:403:25)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object. (C:\Users\Desktop\electron\updater\main.js:1:90)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
[确定]
Followed all the steps, but get this result:
19:41 ~/electron-updater-example/ electron .
App threw an error during load
Error: Cannot find module 'app'
at Module._resolveFilename (module.js:438:15)
at Function.Module._resolveFilename (/usr/local/lib/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/electron.asar/common/reset-search-paths.js:47:12)
at Function.Module._load (module.js:386:25)
at Module.require (module.js:466:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/Users/antoniobrandao/WEBROOT/eus/main.js:1:90)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:456:32)
at tryModuleLoad (module.js:415:12)
This project is not working anymore. The outcome is when running updater in any of the functions behind the HTML is undefined
function check() {
updater.check(function (err, results) {
if(err) return console.error(err)
var output = document.getElementById('output')
var li = document.createElement('li')
if(results) {
li.innerHTML = 'update available: ' + (util.inspect(results).replace(/\n/g, '<br>'))
} else {
li.innerHTML = 'no update available.'
}
output.appendChild(li)
})
}
function list() {
updater.list(function (err, dependencies) {
if(err) return console.error(err)
var output = document.getElementById('output')
var li = document.createElement('li')
li.innerHTML = 'dependencies: ' + (util.inspect(dependencies).replace(/\n/g, '<br>'))
output.appendChild(li)
})
}
updater.check -> cannot read member check of undefined
updater.list -> cannot read member list of undefined
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.