当前位置: 首页 > news >正文

解决 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 https://github.com/lovell/sharp-libvips/releases/download/v8.14.4/libvips-8.14.4-win32-x64.tar.br
│ sharp: Installation error: unable to verify the first certificate
│ sharp: Please see https://sharp.pixelplumbing.com/install 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

设置中国镜像,问题解决

http://www.lryc.cn/news/199414.html

相关文章:

  • 【Java】Java实现100万+ 的高并发、高性能设计
  • linux系统下,在vscode的命令行中调试python文件
  • DFS(分布式文件系统)与 DFSR(分布式文件系统复制)的区别
  • 丈母娘说:有编制的不如搞编程的
  • vue 部署后 405 not allowed
  • 【限时免费】20天拿下华为OD笔试之【回溯】2023Q1-硬件产品销售方案【欧弟算法】全网注释最详细分类最全的华为OD真题题解
  • 蜻蜓c影视追剧系统-多个小程序添加说明
  • linux 测试存储介质.emmc.nand.ufs.硬盘的读写速度方法
  • 基于 KubeSphere 部署 KubeBlocks 实现数据库自由
  • 图像识别-人脸识别与疲劳检测 - python opencv 计算机竞赛
  • 高性能计算与多模态处理的探索之旅:英伟达GH200性能优化与GPT-4V的算力加速未来
  • 代码随想录算法训练营Day59|动态规划17
  • 软考 系统架构设计师系列知识点之软件构件(2)
  • 【试题011】C语言多个运算符计算例题
  • win10系统同时安装 vue2和vue3
  • 带声学释放器的近海海底潜标的回收记录
  • 新加坡服务器托管
  • Si24R2|2.4G单发射芯片 +7dBm可调功率 校讯通
  • 如何让ChatGPT生成图片?
  • 从零开始学习 Java:简单易懂的入门指南之反射(三十八)
  • 【七:(测试用例)spring boot+testng+xml+mock实现用例管理+数据校验】
  • 哪些数据应该先治理
  • No module ‘xformers‘. Proceeding without it.
  • Stable Diffusion WebUI报错RuntimeError: Torch is not able to use GPU解决办法
  • 金融信息化研究所与YashanDB等单位启动金融多主数据库应用行动计划
  • 工具篇之Axure RP 10的使用
  • C#选择排序(Selection Sort)算法
  • 【Mysql】InnoDB数据页结构(五)
  • Golang中的type关键字
  • 网站管家机器人在为企业获客方面起什么作用?