juzisang / picgo-plugin-compress

Image compression plugin for PicGo
MIT License
126 stars 31 forks source link

安装不上,不是网络问题 #20

Closed duzhen1996 closed 3 years ago

duzhen1996 commented 3 years ago

jpegtran-bin这个包的安装后脚本运行失败。

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! jpegtran-bin@5.0.2 postinstall: node lib/install.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the jpegtran-bin@5.0.2 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/duzhen/.npm/_logs/2020-12-17T11_49_31_115Z-debug.log

不知道您能不能把整个插件要发布的版本放在仓库里面让我们直接git clone来安装啊

juzisang commented 3 years ago

发布了1.3.5版本,npm 安装会使用 taobao 镜像。 如果有代理的话,一定要设置代理,代理主要是为了解决,gifsicle 或者其它需要额外到 githubcontent.com 下载二进制程序的问题,如果没配置代理,可能会下载失败。

npm config set proxy http://127.0.0.1:1080
npm config set https-proxy http://127.0.0.1:1080
// http://127.0.0.1:1080 设置成你的http代理端口

如果你有装yarn的话,自己到插件底下

yarn

会比npm安装要顺利很多

后续可能会把这些需要额外安装程序的依赖,抽离出去,只有选中的时候才会懒加载,否则太影响插件第一次安装了...

duzhen1996 commented 3 years ago

好的,我试试,谢谢