網(wǎng)站首頁 編程語言 正文
yarn版本過低導(dǎo)致的報錯
今天在用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版本過低導(dǎo)致的。那就試著更新下yarn.
npm install --global yarn
這樣就執(zhí)行成功了:
原文鏈接:https://blog.csdn.net/qq_40830369/article/details/122099862
- 上一篇:比較throw和 throws的異同
- 下一篇:當前時間與新年倒計時
相關(guān)推薦
- 2023-01-21 Go語言O(shè)RM框架構(gòu)造查詢條件示例詳解_Golang
- 2022-08-22 pyecharts繪制時間輪播圖柱形圖+餅圖+玫瑰圖+折線圖_python
- 2022-03-14 IDEA 上傳文件 getRealpath("/upload)獲取不到文件上傳路徑問題
- 2022-10-21 Rust?入門之函數(shù)和注釋實例詳解_相關(guān)技巧
- 2022-10-10 Python3?re.search()方法的具體使用_python
- 2022-05-04 Python?GUI編程之tkinter?關(guān)于?ttkbootstrap?的使用詳解_python
- 2022-06-02 Go語言流程控制詳情_Golang
- 2024-07-18 Spring Security之配置體系
- 最近更新
-
- window11 系統(tǒng)安裝 yarn
- 超詳細win安裝深度學習環(huán)境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎(chǔ)操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區(qū)別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權(quán)
- redisson分布式鎖中waittime的設(shè)
- maven:解決release錯誤:Artif
- restTemplate使用總結(jié)
- Spring Security之安全異常處理
- MybatisPlus優(yōu)雅實現(xiàn)加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務(wù)發(fā)現(xiàn)-Nac
- Spring Security之基于HttpR
- Redis 底層數(shù)據(jù)結(jié)構(gòu)-簡單動態(tài)字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應(yīng)用詳解
- 聊聊消息隊列,發(fā)送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支