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

编程入门 行业动态 更新时间:2024-10-19 18:35:35

解决 sharp: Installation <a href=https://www.elefans.com/category/jswz/34/1771302.html style=error: unable to verify the first certificate"/>

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

使用 plasmo 时报错如下:

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

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

可知是安装sharp 有问题。

打开提示中的文档:

sharp - High performance Node.js image processing

设置中国镜像,问题解决

更多推荐

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

本文发布于:2023-12-07 01:22:38,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1669643.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:error   Installation   sharp   certificate   verify

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!