zhangyuanwei / node-images

Cross-platform image decoder(png/jpeg/gif) and encoder(png/jpeg) for Nodejs
https://npmjs.org/package/images
MIT License
1.55k stars 204 forks source link

imagescould not find a binding for your current environment: OS X 64-bit with Node.js 6.x #121

Closed ghost closed 5 years ago

ghost commented 6 years ago

error mesg:

/Users/xxx/workspace/coding/com.kuazhan.webcat/node_modules/images/scripts/util/binding.js:15
      throw new Error(errors.missingBinary());
      ^

Error: Missing binding /Users/xxx/workspace/coding/com.kuazhan.webcat/node_modules/images/vendor/darwin-x64-48/binding.node
imagescould not find a binding for your current environment: OS X 64-bit with Node.js 6.x

Found bindings for the following environments:
  - OS X 64-bit with Node.js 6.x
  - OS X 64-bit with Node.js 8.x

This usually happens because your environment has changed since running `npm install`.
Run `npm rebuild images --force` to build the binding for your current environment.
    at module.exports (/Users/xxx/workspace/coding/com.kuazhan.webcat/node_modules/images/scripts/util/binding.js:15:13)
    at Object.<anonymous> (/Users/xxx/workspace/coding/com.kuazhan.webcat/node_modules/images/index.js:32:51)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/xxx/workspace/coding/com.kuazhan.webcat/demo.js:1:78)

i try run npm rebuild images --force there is 404 error

npm rebuild images --force
npm WARN using --force I sure hope you know what you are doing.

> images@3.0.1 install /Users/xxx/workspace/coding/com.kuazhan.webcat/node_modules/images
> node ./scripts/install.js

Downloading binary from https://github.com/zhangyuanwei/node-images/releases/download/v3.0.1/darwin-x64-48_binding.node
Cannot download "https://github.com/zhangyuanwei/node-images/releases/download/v3.0.1/darwin-x64-48_binding.node":

HTTP error 404 Not Found

Hint: If github.com is not accessible in your location
      try setting a proxy via HTTP_PROXY, e.g.

      export HTTP_PROXY=http://example.com:1234

or configure npm proxy via

      npm config set proxy http://example.com:8080
images@3.0.1 /Users/xxx/workspace/coding/com.kuazhan.webcat/node_modules/images
dante1977 commented 6 years ago

我也有一样的问题 node v6.11.2

然后我只能安装回 image@3.0.0 的

oxUnd commented 6 years ago

你的也是 48 不存在?

dante1977 commented 6 years ago

image 这里,没看到有48的呀 @xiangshouding

oxUnd commented 6 years ago

node 版本是哪个 @dante1977 我怀疑 47 的 48 下就能用。看看你的 node 版本?

dante1977 commented 6 years ago

6.11.2

oxUnd commented 6 years ago

@dante1977 OK 我回京处理一下。

cymmint commented 6 years ago

同问 node版本 v6.11.4 images版本 3.0.1

picacav commented 6 years ago

同问,然后我用images版本3.0.0的话就没有封面效果

isuoge commented 6 years ago

我也安装报错 PS G:\node_study> npm install images

images@3.0.1 install G:\node_study\node_modules\images node ./scripts/install.js

Downloading binary from https://github.com/zhangyuanwei/node-images/releases/download/v3.0.1/win32-x64-48_binding.node Cannot download "https://github.com/zhangyuanwei/node-images/releases/download/v3.0.1/win32-x64-48_binding.node":

HTTP error 404 Not Found

Hint: If github.com is not accessible in your location try setting a proxy via HTTP_PROXY, e.g.

  export HTTP_PROXY=http://example.com:1234

or configure npm proxy via

  npm config set proxy http://example.com:8080

node_study@1.0.0 G:\node_study `-- images@3.0.1

npm WARN node_study@1.0.0 No description npm WARN node_study@1.0.0 No repository field.

node版本 v6.10.0

billyjacobson commented 6 years ago

Use node 8.9.3 and that works.

bboywen commented 6 years ago

@billyjacobson it's ok! thanks