curl -fsSL https://deb.nodesource.com/setup_22.x | sudo bash - sudo apt-get install -y nodejs
ubuntu 24.04 的 nodee 版本是 18。copilot for vim 要 20.X,
所以要手動 upgrade. ref: 大概就是先 remove nodejs…然後 run
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -然後再 apt install nodejs
裝完是 20.19
進入 vi 後
:Copilot help會 show copilot command,就是 copilot.txt。
要先 authenticate..
:Copilot setup果然不知道怎麽用...
告訴它
:set filetype=c看狀態
:Copilot status
about node and nodejs
基本都是 nodejs 這個 package 安裝的,node 會安裝在 /usr/bin/node,/usr/bin/nodejs
曾經發生 node, nodejs 版本不一致,發現node 被裝在 /usr/local/bin/,所以沒有 uninstall,把它刪掉就可以。
沒有留言:
張貼留言