LIB002 "cdnjs" 提供者無法解析 "jquery@3.6.1" 程式庫_Libraries could not be resolved by the "cdnjs" provider

若接獲有人給的visual studio專案 如出現此錯誤訊息 LIB002 "cdnjs" 提供者無法解析 "jquery@3.6.1" 程式庫 LIB002 "cdnjs" 提供者無法解析 "twitter-bootstrap@5.2.2" 程式庫 LIB002 "cdnjs" 提供者無法解析 "font-awesome@6.2.0" 程式庫 .... LIB002 "cdnjs" 提供者無法解析 "XXXXXX" 程式庫 不外乎就是缺乏這些前端套件 有經驗的開發者 我們都知道 libman 主要就是一套前端庫管控的工具 基本上可切至套件管理器主控台中 下command 先確認libman cli可運行正常 查看已安裝的CLI 版本 libman --version 若要查看詳細幫助可輸入 libman --help libman help說明 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 Usage: libman [options] [ command ] Options: --help|-h Show help information --version Show version information Commands: cache 列出或清除 libman 快取內容 clean 從專案刪除 libman.json 中定義的所有程式庫檔案 config 取得或進行組態設定 init 建立新的 libman.json install 將程式庫定義新增到 LibMan.json 檔案,並將程式庫下載到指定的位置 restore 從提供者下載所有檔案,並將其儲存到指定的目的地 uninstall 從指定的目的地刪除指定程式庫的所有檔案,然後從 libman.json 移除指定的程式庫定義 update 更新指定的程式庫 Use "libman [command] --help" for more ...