阅读 148

npm install sharp 安装太卡

npm install sharp --unsafe-perm> sharp@0.28.1 install /space/www/cn_restfulapi/node_modules/sharp
> (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)

sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.10.6/libvips-8.10.6-linux-x64.tar.br


在CentOS执行,卡住这里。解决方法是下载 https://github.com/lovell/sharp-libvips/releases/download/v8.10.6/libvips-8.10.6-linux-x64.tar.br 这个文件,放在目录 /root/.npm/_libvips。

然后执行就快多了。

npm install sharp --unsafe-perm> sharp@0.28.1 install /space/www/cn_restfulapi/node_modules/sharp
> (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)

sharp: Using cached /root/.npm/_libvips/libvips-8.10.6-linux-x64.tar.br
+ sharp@0.28.1updated 1 package and audited 358 packages in 95.244s



文章分类
后端
版权声明:本站是系统测试站点,无实际运营。本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 XXXXXXo@163.com 举报,一经查实,本站将立刻删除。
相关推荐