Powershell卸載模塊
之前安裝了個(gè)顯示歷史記錄的自動(dòng)補(bǔ)全模塊PSReadLine,錯(cuò)誤的也提示.于是想卸載掉.發(fā)現(xiàn)抱錯(cuò),無法卸載.
說的是,powershell在運(yùn)行的時(shí)候會(huì)帶著這個(gè)玩意兒一起啟動(dòng),正在使用中無法卸載.找了一圈,在powershell的github倉(cāng)庫(kù)找到了答案.
win+r調(diào)出運(yùn)行窗口,輸入 powershell -noprofile -command "Uninstall-Module PSReadLine" 會(huì)打開powershell運(yùn)行卸載命令,卸載完成后會(huì)自動(dòng)退出,這樣就OK了.
順便帶一些powershell關(guān)于安裝,查找,卸載的命令:
標(biāo)簽:PowershellPSReadLine