npm - 我无法安装 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
解决方案
尝试:
npm install --global windows-build-tools
然后,gatsby-plugin-sharp
再次安装:
npm i gatsby-plugin-sharp
资源:
推荐阅读
- python - 向 json 添加更多属性
- css - 计算用于宽度和高度时的背景位置
- c# - 带有类型转换器的 AutoMapper 错误映射类型
- image - 使用 k-mean 隐写图像 im 图像
- express - PUT 方法的 express-validator
- google-cloud-bigtable - 高可用性是否需要多个 Google BigTable 节点?
- azure-logic-apps - 在 LogicApps 中迭代 JSON 数组
- python - 在 django 中从 NoSQL 切换到 SQL 土地
- web - 如何在我自己的网站 URL 上镜像某些网站?
- android - 使用 Scala 进行 Android 开发