This repository was archived by the owner on Aug 11, 2022. It is now read-only.
This repository was archived by the owner on Aug 11, 2022. It is now read-only.
"npm ls -g" produces no output if global node_modules includes invalid symlink #9564
Open
Description
Environment: node v4.0.0 on Windows 7 X64.
At some point in the past, I used "npm link" and it created a symlink under %appdata%\npm\node_modules. The directory it linked to has since been renamed, so the link target is now invalid.
With npm v2.14.3, "npm ls -g" shows an empty module name for the bad symlink, but otherwise works...
C:\Users\xxxx\AppData\Roaming\npm
├── babel@5.8.23
├── grunt-cli@0.1.13
├── gulp@3.9.0
├──
└── webpack@1.12.1
npm v3.3.3 displays absolutely nothing. No directory listing and no error message.
I removed the obsolete symlink, and npm v3 started working.