網站首頁 編程語言 正文
yarn版本過低導致的報錯
今天在用yarn啟動項目的時候報了這樣的一個錯。
warning Error running install script for optional dependency: "C:\\frontApp\\minibot-net\\Src\\Fcp\\FcpAdminWebApp\\node_modules\\puppeteer: Command failed.
Exit code: 1
Command: node install.js
Arguments:
Directory: C:\\frontApp\\minibot-net\\Src\\Fcp\\FcpAdminWebApp\\node_modules\\puppeteer
Output:
ERROR: Failed to download Chromium r722234! Set \"PUPPETEER_SKIP_CHROMIUM_DOWNLOAD\" env variable to skip download.
Error: getaddrinfo ENOTFOUND storage.googleapis.com
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)
-- ASYNC --
at BrowserFetcher.<anonymous> (C:\\frontApp\\minibot-net\\Src\\Fcp\\FcpAdminWebApp\\node_modules\\puppeteer\\lib\\helper.js:111:15)
at Object.<anonymous> (C:\\frontApp\\minibot-net\\Src\\Fcp\\FcpAdminWebApp\\node_modules\\puppeteer\\install.js:66:16)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47 {
errno: -3008,
code: 'ENOTFOUND',
warning Your current version of Yarn is out of date. The latest version is "1.22.17", while you're on "1.22.10".
看到最后一行提示可以得出,是yarn版本過低導致的。那就試著更新下yarn.
npm install --global yarn
這樣就執行成功了:
原文鏈接:https://blog.csdn.net/qq_40830369/article/details/122099862
- 上一篇:比較throw和 throws的異同
- 下一篇:當前時間與新年倒計時
相關推薦
- 2022-04-09 python中IO流和對象序列化詳解_python
- 2022-04-28 C++實現簡單班級成績管理系統_C 語言
- 2024-01-07 IDEA中自動導包及快捷鍵
- 2022-03-24 C++?Primer的變量和基本類型詳解_C 語言
- 2022-08-16 Linux下搭建SFTP服務器的命令詳解_FTP服務器
- 2022-06-30 C語言超詳細講解結構體與聯合體的使用_C 語言
- 2022-07-10 Executor 線程池技術詳解
- 2021-12-05 Android?NDK開發(C語言-文件讀寫)_Android
- 最近更新
-
- window11 系統安裝 yarn
- 超詳細win安裝深度學習環境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優雅實現加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發現-Nac
- Spring Security之基于HttpR
- Redis 底層數據結構-簡單動態字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支