Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当 npm 工作时(我在 Windows 7 上使用最新的官方版本)并且正在安装模块,“npm ls installed”显示空列表,“npm ls -g installed”也是如此,我尝试将 NODE_PATH 变量设置为各种路径,这似乎也不起作用。
mkdir c:\temp cd c:\temp npm install yeti
[...] - 一切看起来都不错,安装了 Yeti
npm ls installed C:\temp └── (empty)
您要运行的命令是npm lsor npm ls -g(leave off installed)。
npm ls
npm ls -g
installed