clj-on-windows

For those interested in making clj on Windows https://dev.clojure.org/jira/browse/TDEPS-67. Also see https://github.com/littleli/scoop-clojure.
chucklehead 2021-03-01T00:47:15.007400Z

From a PS session where you haven't run any clj commands this should work Get-Module -Name ClojureTools | Split-Path | Remove-Item -Recurse

Cj Pangilinan 2021-03-01T00:52:38.010700Z

Get-Module -Name ClojureTools doesn't return anything. even in Get-InstalledModule. but in Documents/WindowsPowerShell/Modules/, there's a ClojureTools.

Cj Pangilinan 2021-03-01T00:53:05.010900Z

I plan to install clojure via scoop, since that's the way I installed most of my tools.

Cj Pangilinan 2021-03-01T00:53:45.011100Z

Can I just delete the ClojureTools in Documents/WindowsPowerShell/Modules/?

chucklehead 2021-03-01T00:54:06.011300Z

yeah, the installer script just unzips a ps module there

Cj Pangilinan 2021-03-01T00:55:16.011500Z

ok. thank you. i just thought deleting it may cause some problems in the future that's why i want to know the right way to uninstall the ps module

chucklehead 2021-03-01T02:07:41.011700Z

unfortunately AFAIK there's no generic way in PowerShell (other than just deleting the folder)...in general PS just searches for modules in the paths registered in $env:PSModulePath. For things installed via install-package/install-module you can use uninstall-module, some modules just install into one of the default locations, some ship installers that add app folders to $env:PSModulePath, etc.

👍 1