خرید بک لینک

Vote count: 0

I'm trying to build an electron app in an ubuntu 14.04 docker container. I get the following error:

root@container:/work# npm install
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: 7zip-bin-mac@^1.0.1 (node_modules/7zip-bin/node_modules/7zip-bin-mac):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: 7zip-bin-win@^2.0.2 (node_modules/7zip-bin/node_modules/7zip-bin-win):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"win32","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! Linux 4.4.57-boot2docker
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v7.9.0
npm ERR! npm  v4.2.0
npm ERR! path ../7zip/7zip-lite/7z.exe
npm ERR! code EPROTO
npm ERR! errno -71
npm ERR! syscall symlink

npm ERR! EPROTO: protocol error, symlink '../7zip/7zip-lite/7z.exe' -> '/work/node_modules/.bin/7z'
npm ERR!

The app itself has no direct dependency on 7zip, but there is a transitive dependency through electron-builder. I don't know how to properly fix this.

For completeness, here's a redacted version of my package.json

$ cat package.json
{
  "name": "thing", "productName": "Thing", "version": "0.10.0",
  "description": "Redacted", "main": "main.js",
  "scripts": {
    "test": "", "test-all": "", "test-watch": "", "test-e2e": "",
    "lint": "", "lint-fix": "", "hot-server": "", "build-main": "",
    "build-renderer": "", "build": "", "start": "", "start-hot": "",
    "postinstall": "", "dev": "", "package": "", "package-win": "",
    "package-linux": "", "package-all": ""
  },
  "browserslist": "electron 1.4",
  "build": {
    "productName": "Thing",
    "appId": "com.redacted.Thing", "category": "public.app-category.tools",
    "directories": {
      "buildResources": "resources",
      "output": "release",
      "app": "build"
    },
    "files": ["**/*"],
    "dmg": {
      "contents": [
        {
          "x": 410, "y": 150,
          "type": "link",
          "path": "/Applications"
        },
        {
          "x": 130, "y": 150,
          "type": "file"
        }
      ]
    },
    "win": {
      "target": "nsis"
    },
    "linux": {
      "target": ["deb"]
    }
  },
  "bin": {
    "electron": "./node_modules/.bin/electron"
  },
  "homepage": "www.stackoverflow.com",
  "devDependencies": {
...
    "devtron": "^1.4.0",
    "electron": "^1.4.15",
    "electron-builder": "^13.3.2",
    "electron-devtools-installer": "^2.0.1",
...
  },
  "dependencies": {
    "electron-debug": "^1.1.0",
...
  },
  "devEngines": {
    "node": ">=6.x",
    "npm": ">=3.x"
  }
}
asked 48 secs ago

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 23 فروردين 1396 ساعت: 19:20

صفحه بندی