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

请教下linux centos下安装报这个错怎么解决呢? #149

Closed beclass closed 5 years ago

beclass commented 6 years ago

image

oxUnd commented 6 years ago

目录没有权限,改一下权限就好了。

beclass commented 6 years ago

还是不行呀,就这个模块安装失败 image

FeSeason commented 6 years ago

先进入目录创建 linux-那个目录 之后手动给个 777 权限,就可以了 有点坑, 我也是centos 7.

beclass commented 6 years ago

@cench 这个问题了 image

FeSeason commented 6 years ago

切npm源 用淘宝源

beclass commented 6 years ago

@cench 就是cnpm i的呀

FeSeason commented 6 years ago

用 nrm 切 npm 淘宝源 不要用cnpm 试试

beclass commented 6 years ago

@cench 先进入目录创建 linux-那个目录 之后手动给个 777 权限,之后再npm i 不是又重新覆盖了吗?创建的linux-x64-59又没有了,

beclass commented 6 years ago

... 把node版本降低, 才可以....

cfz1005 commented 6 years ago

@laiyiyi 请问node要用哪个版本才可以,我目前是v8.12.0,有问题

oxUnd commented 6 years ago

response_container_BBPPID{font-family: initial; font-size:initial; color: initial;} centos 整体适配应该没有针对性做。你可以把 .node  文件 ldd 一下 看看少什么链接库,然后装上就可以了。如果还是不行 就自己尝试编译吧。 发件人: notifications@github.com发送时间: 2018年9月18日 上午9:11收件人: node-images@noreply.github.com回复: reply@reply.github.com抄送: fansekey@gmail.com; comment@noreply.github.com主题: Re: [zhangyuanwei/node-images] 请教下linux centos下安装报这个错怎么解决呢? (#149) @laiyiyi 请用Node要用哪个版本才可以,我目前是v8.12.0,有问题

—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.

beclass commented 6 years ago

8.2^就可以,不过不能pm2 启多个进程,那样会生成不了图片。单进程就没问题

oxUnd commented 5 years ago

@laiyiyi 你是要实时进行处理图片么?