[BUG] Git Bash on Windows - uninstalling global package doesn't remove ps1
files
#954
Labels
Bug
thing that needs fixing
platform:windows
is Windows-specific
Release 6.x
work is associated with a specific npm 6 release
What / Why
I'm on a Windows 10 machine with NodeJS
10.17.0
and[email protected]
(I manually update NPM, but I need Node 10 for project compatibility reasons). where I use thebash.exe
provided with Git2.25.1
as my default shell. As far back as I can remember, I've always had some or other wacky issue with global packages, so I decided to take a bit of time this morning to dig into it a little more.When
Every time I try uninstall any global package using Git Bash under Windows.
Where
How
Current Behavior
All package files except the PowerShell scripts (
ps1
files) is removed.Steps to Reproduce
Important: run these using Git Bash in a Windows environment.
npm i -g @angular/cli
%APPDATA%\npm
, we can confirm the following:ng
existsng.cmd
existsng.ps1
existsnode_modules\@angular\cli\
exists and has the full Angular CLI packagenpm un -g @angular/cli
%APPDATA%\npm
again, we can confirm the following:ng.ps1
still existsnode_modules\@angular\cli\
still exists, but only contains it'snode_modules
folder, which in turn only contains package folders that were distributed with their ownps1
files, as per the following CMD output:Expected Behavior
I would expect all originally installed package files to be removed when uninstalling the package, regardless of which shell was used.
Who
not sure?
References
The text was updated successfully, but these errors were encountered: