Open ghost opened 3 years ago
Unfortunately this happens because it is the first installation and it will modify the PATH variable. In a terminal window for powershell, environment variable can be updated on the system but it will not be seen in the terminal unless you restart or manually refresh.
This is a known limitation in scoop: https://github.com/lukesampson/scoop/issues/2980 and even in new Windows Terminal https://github.com/microsoft/terminal/issues/1125
So the installation is ok on your system, you just can't use it in the same Terminal process that you make the first install in.
You can do a manual refresh with this I think
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
I am not so sure about it so I did not add it in the post installation step but maybe I could. I was waiting for https://github.com/lukesampson/scoop/issues/2980 because it would be better to have that in scoop directly.
Can you confirm that after a restart you get tlmgr
found ?
Yes, after a restart it works. Maybe it would be useful to display a message telling the user to restart?