我不能安装盖茨比插件 npm i盖茨比插件
试图在我的Windows7 32位上安装gatsby插件sharp,但遇到此错误我不能安装盖茨比插件 npm i盖茨比插件,npm,gatsby,Npm,Gatsby,试图在我的Windows7 32位上安装gatsby插件sharp,但遇到此错误 npm ERR! npm ERR! Failed at the pngquant-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 ca
npm ERR!
npm ERR! Failed at the pngquant-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! C:\Users\Qudusayo\AppData\Roaming\npm-cache\_logs\2020-05-23T08_58_04_544Z-debug.log
尝试:
然后,再次安装gatsby plugin sharp
:
npm i gatsby-plugin-sharp
资源:
- 检查全局忽略脚本是否未设置为false:
npm config set ignore-scripts true
- 从节点模块中删除旧的sharp文件夹
- 将其重新安装为:
npm install sharp --unsafe-perm
- 如果上述方法无效,请尝试此方法
npm rebuild --verbose sharp
- 在我的机器上,建议的解决方案不起作用。在过去的几天里,我尝试了许多不同的方法。唯一安装插件的是以下(Windows):
快乐编码!你可以参考。嘿,库杜萨约。欢迎来到stackoverflow。您需要为您的问题提供更多细节,以便人们更好地回答您的问题!可能是缺少libpng。谷歌将其与您的操作系统结合使用。您在设置本地环境时是否遵循了指南?
npm rebuild --verbose sharp