Skip to content

Instantly share code, notes, and snippets.

@iCodeForBananas
Created February 1, 2016 19:24
Show Gist options
  • Select an option

  • Save iCodeForBananas/ccd6ed759ed87dd9866e to your computer and use it in GitHub Desktop.

Select an option

Save iCodeForBananas/ccd6ed759ed87dd9866e to your computer and use it in GitHub Desktop.
[01/02/2016:09:05:24:534:log:05133] Checking validity.
[01/02/2016:09:05:24:560:log:05133] dependency check: [ { name: 'angular',
dir: '/Applications/CodeSketcher (Alpha).app/Contents/Resources/app/node_modules/angular',
current: '1.4.9',
desired: '^1.4.8',
valid: true },
{ name: 'angular-elastic',
dir: '/Applications/CodeSketcher (Alpha).app/Contents/Resources/app/node_modules/angular-elastic',
current: '2.5.1',
desired: '^2.5.1',
valid: true },
{ name: 'angular-highlightjs',
dir: '/Applications/CodeSketcher (Alpha).app/Contents/Resources/app/node_modules/angular-highlightjs',
current: '0.5.1',
desired: '^0.5.1',
valid: true },
{ name: 'angular-hotkeys',
dir: '/Applications/CodeSketcher (Alpha).app/Contents/Resources/app/node_modules/angular-hotkeys',
current: '1.6.0',
desired: '^1.6.0',
valid: true },
{ name: 'angular-loading-bar',
dir: '/Applications/CodeSketcher (Alpha).app/Contents/Resources/app/node_modules/angular-loading-bar',
current: '0.8.0',
desired: '^0.8.0',
valid: true },
{ name: 'angular-local-storage',
dir: '/Applications/CodeSketcher (Alpha).app/Contents/Resources/app/node_modules/angular-local-storage',
current: '0.2.2',
desired: '^0.2.2',
valid: true },
{ name: 'angular-moment',
dir: '/Applications/CodeSketcher (Alpha).app/Contents/Resources/app/node_modules/angular-moment',
current: '1.0.0-beta.3',
desired: '1.0.0-beta.3',
valid: true },
{ name: 'angular-sanitize',
dir: '/Applications/CodeSketcher (Alpha).app/Contents/Resources/app/node_modules/angular-sanitize',
current: '1.4.9',
desired: '^1.4.5',
valid: true },
{ name: 'angular-ui-bootstrap',
dir: '/Applications/CodeSketcher (Alpha).app/Contents/Resources/app/node_modules/angular-ui-bootstrap',
current: '1.1.1',
desired: '^1.1.0',
valid: true },
{ name: 'angular-ui-router',
dir: '/Applications/CodeSketcher (Alpha).app/Contents/Resources/app/node_modules/angular-ui-router',
current: '0.2.17',
desired: '^0.2.15',
valid: true },
{ name: 'angular-ui-sortable',
dir: '/Applications/CodeSketcher (Alpha).app/Contents/Resources/app/node_modules/angular-ui-sortable',
current: '0.13.4',
desired: '^0.13.4',
valid: true },
{ name: 'babel',
dir: '/Applications/CodeSketcher (Alpha).app/Contents/Resources/app/node_modules/babel',
current: '6.3.26',
desired: '^6.3.26',
valid: true },
{ name: 'babel-preset-es2015',
dir: '/Applications/CodeSketcher (Alpha).app/Contents/Resources/app/node_modules/babel-preset-es2015',
current: '6.3.13',
desired: '^6.3.13',
valid: true },
{ name: 'electron-plugins',
dir: '/Applications/CodeSketcher (Alpha).app/Contents/Resources/app/node_modules/electron-plugins',
current: '0.0.4',
desired: '0.0.4',
valid: true },
{ name: 'electron-updater',
dir: '/Applications/CodeSketcher (Alpha).app/Contents/Resources/app/node_modules/electron-updater',
current: '0.3.0',
desired: 'github:vj3k0/electron-updater',
valid: false },
{ name: 'highlight.js',
dir: '/Applications/CodeSketcher (Alpha).app/Contents/Resources/app/node_modules/highlight.js',
current: '9.1.0',
desired: '^9.1.0',
valid: true },
{ name: 'image-size',
dir: '/Applications/CodeSketcher (Alpha).app/Contents/Resources/app/node_modules/image-size',
current: '0.4.0',
desired: '^0.4.0',
valid: true },
{ name: 'jquery',
dir: '/Applications/CodeSketcher (Alpha).app/Contents/Resources/app/node_modules/jquery',
current: '2.2.0',
desired: '^2.2.0',
valid: true },
{ name: 'lodash',
dir: '/Applications/CodeSketcher (Alpha).app/Contents/Resources/app/node_modules/lodash',
current: '4.1.0',
desired: '^4.0.0',
valid: true } ]
[01/02/2016:09:05:24:560:log:05133] Dependencies are not valid.
[01/02/2016:09:05:24:561:log:05133] execPath:/Applications/CodeSketcher (Alpha).app/Contents/MacOS/Electron
[01/02/2016:09:05:24:561:log:05133] copy appDir: /Applications/CodeSketcher (Alpha).app
[01/02/2016:09:05:24:561:log:05133] updateDir: /Users/michaelcalkins/Library/Application Support/CodeSketcher/updater/0.36.7
[01/02/2016:09:05:25:186:log:05133] Launching update process:
[01/02/2016:09:05:25:186:log:05133] args: '{"appName":"CodeSketcher","publisher":"CodeSketcher","cwd":"/","exe":"/Applications/CodeSketcher (Alpha).app/Contents/MacOS/Electron","argv":[]}'
[01/02/2016:09:05:25:186:log:05133] exe: /Users/michaelcalkins/Library/Application Support/CodeSketcher/updater/0.36.7/Contents/MacOS/Electron
[01/02/2016:09:05:25:186:log:05133] cwd: /Applications/CodeSketcher (Alpha).app/Contents/Resources/app
[01/02/2016:09:05:25:186:log:05133] updateDir: /Applications/CodeSketcher (Alpha).app/Contents/Resources/app/node_modules/electron-updater
@justinmchase

Copy link
Copy Markdown

Your problem appears to be this:

{ name: 'electron-updater',
    dir: '/Applications/CodeSketcher (Alpha).app/Contents/Resources/app/node_modules/electron-updater',
    current: '0.3.0',
    desired: 'github:vj3k0/electron-updater',
    valid: false },

Which tells me that in your package.json your dependency is probably:

"dependencies": {
  ...
  "electron-updater": "github:vj3k0/electron-updater"
}

Npm probably understands this but the electron-udpater doesn't. It could probably, but it doesn't have that feature yet. Thus when it updates it is asking npm for versions and it is then is treating that like a valid semver (which it isn't) and therefore fails to update. Then since the app is only partially updated it ends up trying to keep udpating, but fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment