首页 > 解决方案 > 我无法安装 gatsby-plugin-sharp

问题描述

   npm i gatsby-plugin-sharp

尝试在我的 Windows7 32 位上安装 gatsby-plugin-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 can be found in:
npm ERR!     C:\Users\Qudusayo\AppData\Roaming\npm-cache\_logs\2020-05-23T08_58_04_544Z-debug.log

标签: npmgatsby

解决方案


尝试:

npm install --global windows-build-tools

然后,gatsby-plugin-sharp再次安装:

   npm i gatsby-plugin-sharp

资源:


推荐阅读