日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學無先后,達者為師

網(wǎng)站首頁 編程語言 正文

yarn版本過低導(dǎo)致的報錯

作者:sakuraxiaoyu 更新時間: 2022-01-03 編程語言

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

欄目分類
最近更新