I'm working on a project that often runs hot and cold. As it happens, I haven't run a build in a little over a month (it's been a cold period). At the time, it worked just fine. Today, though, I tried to run a build and got this:
Module version mismatch. Expected 48, got 47.
In my project root, I have the following package.json:
{
"name": "status-meter",
"productName": "Status Meter",
"description": "Status Meter is like a fuel gauge for your data allowance.",
"homepage": "http://services.myclient.com/statusmeter",
"repository": {
"type": "git",
"url": "https://bitbucket.org/owner/repo"
},
"dependencies": {
"aws-sdk": "^2.2.15",
"electron-builder": "^2.11.0",
"electron-packager": "^6.0.2",
"electron-prebuilt": "^0.36.0"
},
"scripts": {
"clean": "rm -rf dist",
"clean:osx": "rm -rf dist/osx",
"clean:win": "rm -rf dist/win",
"build": "npm run clean && npm run build:osx && npm run build:win",
"build:osx": "npm run clean:osx && electron-packager ./app \"Status Meter\" --ignore=node_modules/.bin --out=dist/osx/ --platform=darwin --arch=x64 --version=0.36.12 --icon=\"build/assets/osx/Status Meter.icns\" --prune --app-bundle-id=\"com.myclient.statusmeter\" --app-version=$(node -e 'console.log(require(\"./app/package.json\").version)')",
"build:win": "npm run clean:win && electron-packager ./app \"Status Meter\" --ignore=node_modules/.bin --out=dist/win/ --platform=win32 --arch=ia32 --version=0.36.12 --icon=\"build/assets/win/Status Meter.ico\" --prune --app-version=$(node -e 'console.log(require(\"./app/package.json\").version)')",
"pack": "npm run pack:osx && npm run pack:win",
"pack:osx": "npm run build:osx && electron-builder \"dist/osx/Status Meter-darwin-x64/Status Meter.app\" --platform=osx --out=dist/osx/ --config=build/config.json",
"pack:win": "npm run build:win && electron-builder \"dist/win/Status Meter-win32-ia32\" --platform=win --out=dist/win/ --config=build/config.json",
"nightly": "npm run pack && node bin/upload.js"
}
}
I run the build by simply executing
Locally, I'm running Node v6.0.0.
My issue seems similar to #39, but I'm not certain of that. I've been looking around for a map of electron version to the packaged node version, but haven't found one yet. Any advice would be a big help.
I'm working on a project that often runs hot and cold. As it happens, I haven't run a build in a little over a month (it's been a cold period). At the time, it worked just fine. Today, though, I tried to run a build and got this:
In my project root, I have the following package.json:
I run the build by simply executing
Locally, I'm running Node v6.0.0.
My issue seems similar to #39, but I'm not certain of that. I've been looking around for a map of electron version to the packaged node version, but haven't found one yet. Any advice would be a big help.