我正在写一个基于电子的应用程序,想使用webchimera。但是,当我想安装(使用npm)wcjs预构建包时,总会出现以下错误:
找不到与您的环境匹配的WebChimera版本
我用的是Ubuntu 16.04。
我的包.json:

{
  "name": "MoviePlayer",
  "version": "0.1.0",
  "main": "main.js",
  "devDependencies": {
    "builder": "^3.2.1",
    "electron": "^1.4.3",
    "electron-ipc-plus": "^1.3.3",
    "hound": "^1.0.4",
    "jquery": "^3.1.1",
    "movie-art": "^1.0.6",
    "parse-torrent-name": "^0.5.4",
    "recursive-search": "^1.0.1",
    "uuid": "^3.0.1",
    "nedb": "^1.8.0",
    "wcjs-player": "git://github.com/jaruba/wcjs-player.git",
    "wcjs-prebuilt": "^3.0.0"
    },
    "wcjs-prebuilt": {
      "runtime": "electron",
      "runtimeVersion": "v1.4.3",
      "version": "v0.2.7"
    }
}

最佳答案

wcjs-prebuilt仅支持mac和windows。从文档中:
目标平台(支持:win/osx。默认值:机器平台)
https://www.npmjs.com/package/wcjs-prebuilt#configuration(强调我的)
可能相关:https://github.com/RSATom/WebChimera.js/issues/69

09-10 05:36