Giter VIP home page Giter VIP logo

electron-updater-sample's People

Contributors

justinmchase avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

electron-updater-sample's Issues

run electron . has a error,

[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)

[确定]

Run error

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)    

The example project is not working

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.