上回換新 C 碟 SSD 重新安裝系統與開發環境後一直沒時間做系統映像檔, 在這之前先把 Antigravity 開發環境安裝起來, 參考 :
1. 安裝 Antigravity CLI :
開啟 PS 視窗, 輸入如下指令 :
irm https://antigravity.google/cli/install.ps1 | iex
PS C:\WINDOWS\system32> irm https://antigravity.google/cli/install.ps1 | iex
ERROR: logging before google.Init: I0827 21:36:41.135667 1 installer.go:27] Running Antigravity CLI setup...
ERROR: logging before google.Init: I0827 21:36:41.148669 1 installer_windows.go:45] Configuring Windows user PATH registry environment...
ERROR: logging before google.Init: I0827 21:36:41.149196 1 installer_windows.go:117] Successfully added %LOCALAPPDATA%\agy\bin to User PATH registry variable.
ERROR: logging before google.Init: I0827 21:36:41.149196 1 installer_windows.go:148] Broadcasting environment update system-wide...
ERROR: logging before google.Init: I0827 21:36:41.276256 1 installer_windows.go:167] Environment update broadcast completed.
Warning: C:\Users\tony1\AppData\Local\agy\bin is not present in your active Environment PATH.
Please restart your active terminal session, or add it manually if needed.
✅ Antigravity CLI binary placed successfully at C:\Users\tony1\AppData\Local\agy\bin\agy.exe
Note: The binary is installed, but it is not in your active PATH. Please follow the instructions above to add it, then restart your terminal session.
看到一堆 ERROR 會以為安裝失敗, 其實這些 ERROR : logging before google.Init... 是 Go 語言安裝程式在初始化內部日誌系統前的標準除錯輸出 (Info-level log), 並非真正的錯誤. 安裝腳本已經自動將路徑寫入 Windows 註冊表的 User PATH, 但當前這個已開啟的 PowerShell 視窗尚未載入最新的環境變數, 所以才會報出中間的 Warning. 最後的勾勾顯示 Antigravity CLI 已成功安裝. 只要關掉目前的 PS 視窗重開一個新的, 輸入 agy --version 若顯示版本號就能確認已安裝完成 :
PS C:\WINDOWS\system32> agy --version
1.1.22
比我 LG Gram 上的 v1.0.12 還新哩.
2. 安裝 Antigravity IDE :
從谷歌 Antigravity 網站下載 .exe 檔執行安裝 :
登入 Google 帳號經驗證後成功安裝 IDE :

沒有留言 :
張貼留言