描述:
當執行 openclaw onboard 命令並選擇安裝 LINE plugin 時,npm 無法找到 @openclaw/line 套件,導致安裝失敗。
錯誤信息:
◇ Install LINE plugin?
│ Download from npm (@openclaw/line)
Downloading @openclaw/line…
Plugin install failed: npm pack failed: npm notice Access token expired or revoked. Please try logging in again.
npm notice Access token expired or revoked. Please try logging in again.
npm error code E404
npm error 404 Not Found - GET https://registry.npmjs.org/@openclaw%2fline - not found
npm error 404
npm error 404 '@openclaw/line@*' is not in this registry.
npm error 404
npm error 404 Note that you can also install from a
npm error 404 tarball, folder, http url, or git url.
npm error A complete log of this run can be found in: /home/node/.npm/_logs/2026-02-24T17_49_51_652Z-debug-0.log
環境信息:
- 平台:Zeabur
- 服務:OpenClaw
- 版本:2026.2.19
- 容器鏡像:ghcr.io/openclaw/openclaw:2026.2.19
- Node.js 版本:22.22.0
- npm 版本:(需要確認)
問題分析:
- npm 訪問令牌問題:
- 錯誤信息顯示 "Access token expired or revoked"
- 這可能表示 npm registry 的認證配置有問題
- 套件不存在:
@openclaw/line在公開的 npm registry (https://registry.npmjs.org/) 中找不到- 可能原因:
- 套件還沒有發佈到公開 npm registry
- 套件是私有的,需要特殊認證
- 套件名稱或版本有誤
- 後續影響:
- LINE plugin 無法安裝
- LINE provider 無法初始化
- LINE webhook 伺服器無法啟動
- 導致 LINE Messaging API webhook 驗證失敗(HTTP 405 Method Not Allowed)
重現步驟:
- 在 Zeabur 上部署 OpenClaw 服務
- 執行
openclaw onboard命令 - 選擇 "Install LINE plugin?"
- 觀察 npm 安裝過程
預期行為:
@openclaw/line套件應該成功安裝- LINE provider 應該正常初始化
- LINE webhook 伺服器應該在
/line/webhook路徑上監聽
實際行為: - npm 無法找到
@openclaw/line套件 - 安裝失敗
- LINE provider 無法啟動,導致持續自動重啟