npm uninstall <pkg> -g isn't doing what it's supposed to do #1101
-
So to explain a little, im using nvm inside a virtual machine running on hyper-v manager. I have trouble uninstalling a package which got installed from a private registry. The issue seems to occur after pkg installation from the private registry, which leads me clueless what the reason for that might be, nvm issue, npm issue, package issue or a combination of all 3. Why do i think it has to do with the package beeing from a private registry? If i have this one package installed from the private registry and others from npm registry globaly, the problem affects the other packages as well, and npm uninstall of any globaly installed package won't work anymore. running cschieder is not using admin or elevated rights. Windows Developer Mode: UNKNOWN (user cannot read registry) NVM4W Version: 1.1.12 Total Node.js Versions: 1 PROBLEMS DETECTEDConnection type cannot be determined: dial tcp [::1]:80: connectex: Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte. I couldn't find much on the detected problem itself, just one issue where it was mentioned but in a other context. Any help would be apreciated, and if i need to provide some additional infos let me know. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
This wouldn't be an NVM4W issue. Once npm is installed, NVM4W is completely out of the picture. However; the nvm debug output may provide a clue. My German is pretty rusty, but I believe the error is telling you it cannot connect to the network. This could be caused by the registry denying access, a firewall on your computer denying access, or a proxy (if enabled) denying access. |
Beta Was this translation helpful? Give feedback.
The error you're receiving comes from the IPv6 check. It's a generic check that attempts to contact localhost via TCP (essentially a ping) on the IPv6 local address (
[::1]
). It looks like your system is configured to use IPv6, but something is wrong. In particular, your system seems to be hitting this line of code, which is an Operating System level error (i.e. unknown to NVM4W). This is Go's generic network dialer, the part that is responsible for initiating any kind of network connection.If your system is also configured to use IPv4 and you're successfully able to
npm install
other public modules, then your private registry connection is the problem. I don't know how npm represents its…