Ivshti / wcjs-prebuilt

Install pre-built WebChimera.js with bundled VLC for Electron
43 stars 21 forks source link

Adding hash to root package.json does nothing? #34

Closed kbailles closed 7 years ago

kbailles commented 7 years ago

The documentation here specifies that you can add "wcjs-prebuilt" to your package.json and it that it should install the corresponding version using npm install. I have had no success with this.

Here is my package.json:

{
  "devDependencies": {
    "chai": "^3.5.0",
    "electron-mocha": "^2.3.0",
    "electron-packager": "^7.0.2",
    "electron-prebuilt": "1.3.1",
    "eslint": "^2.11.1",
    "sinon": "^1.17.4",
    "wcjs-player": "latest",
    "wcjs-prebuilt": "latest"
  },
    "wcjs-prebuilt": {
      "runtime": "electron",
      "runtimeVersion": "v1.2.8",
      "version": "v0.2.6"
    }
  }
}

Here is a sample npm install

wrong_aquire

Notice I want Electron v1.2.8 but it fetches v1.3.1. Any idea what I'm doing wrong?

kbailles commented 7 years ago

Turns out you need to put "wcjs-prebuilt" in the root root of your project. I had a few subfolders that had a package.json in it... "wcjs-prebuilt" goes in the literal root package.json of your git project.