• 解决 sharp: Installation error: unable to verify the first certificate


    使用 plasmo 时报错如下:

    1. E:\chromeplugins>pnpm create plasmo
    2. ../.pnpm-store/v3/tmp/dlx-46852 | +2 +
    3. ../.pnpm-store/v3/tmp/dlx-46852 | Progress: resolved 2, reused 2, downloaded 0, added 2, done
    4. 🟣 Plasmo v0.83.0
    5. 🔴 The Browser Extension Framework
    6. 🟡 Extension name: myExtension3
    7. 🟡 Extension description: just for fun
    8. 🟡 Author name: mike gao
    9. 🔵 INFO | Creating new project with popup
    10. 🔵 INFO | Installing dependencies...
    11.  WARN  1 deprecated subdependencies found: stable@0.1.8
    12. Packages: +560
    13. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    14. Progress: resolved 634, reused 559, downloaded 0, added 560, done
    15. node_modules/.pnpm/sharp@0.32.5/node_modules/sharp: Running install script, failed in 2.8s
    16. .../sharp@0.32.5/node_modules/sharp install$ (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp …
    17. │ sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.14.4/libvips-8.14.4-win32-x64.tar.br
    18. │ sharp: Installation error: unable to verify the first certificate
    19. │ sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies
    20. └─ Failed in 2.8s at E:\chromeplugins\my-extension3\node_modules\.pnpm\sharp@0.32.5\node_modules\sharp
    21.  ELIFECYCLE  Command failed with exit code 1.

    重点是这行:sharp: Installation error: unable to verify the first certificate

    可知是安装sharp 有问题。

    打开提示中的文档:

    sharp - High performance Node.js image processing

    设置中国镜像,问题解决

  • 相关阅读:
    warp和grid_sample的一些理解
    MyBatis模糊查询
    MySQL中字符串类型的常用函数
    【CSS】css变量
    SAP TMS传输系统配置手册
    11 Fork/Join
    SQL获取IP电脑名
    腾讯云服务器+宝塔+后端+前端发布
    对象的解构赋值(基本用法1)
    【论文笔记】(FGSM)Explaining and Harnessing Adversarial Examples
  • 原文地址:https://blog.csdn.net/zhutulang/article/details/133943996