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

安装时报错 #127

Closed king-king closed 5 years ago

king-king commented 6 years ago

_20171027163016

这个问题会导致运行时报_Image is not a constructor错误

oxUnd commented 6 years ago

下载失败了嘛,肯定用不了。

king-king commented 6 years ago

为啥会出这个问题呢?我们好几个同事都遇到了这个问题

king-king commented 6 years ago

而且非常奇怪的是,我换了网络环境也不行,是不是你把文件删除了?

oxUnd commented 6 years ago

@king-king 我查查,骚等。

rainAgain commented 6 years ago

我也遇到了这个问题,看了下release中,win32-x64-48不存在. win,node 8.1.3中木有问题,node6.9.1安装才有问题,其他版本没有测试,下图为v8.1.3中,但是我现在需要用6.9.1的来开发,希望尽快解决 image

@xiangshouding

isuoge commented 6 years ago

6.10.0遇到相同问题,希望大大快点解决

chengwb53 commented 6 years ago

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

images@3.0.1 install F:\workspace\KO\Dtml\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/win 32-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 F:\workspace\KO\Dtml\node_modules\images

git上找不到文件

oxUnd commented 6 years ago

@rainAgain @chengwubin 试一下,编译了一个 48 的。

rainAgain commented 6 years ago

可以了,谢谢大佬 : )

zhangweiyuan commented 6 years ago

npm 安装的时候下面会出来一个链接,你直接把这个链接复制下来用迅雷下载,然后把下载的文件复制到目录内 snipaste_2017-11-23_16-13-24

renxia commented 6 years ago

@zhangweiyuan 迅雷也下载不到 这个有没有国内的镜像呢

JTT5327 commented 6 years ago

https://github.com/zhangyuanwei/node-images/releases/download/v3. 0.1/win32-x64-48_binding.node 这个文件可以用迅雷下载下来,谢谢楼主