当使用npm安装一些全局的软件包时,不知道安装到了什么位置,可以使用命令 npm root -g 进行查询,通常默认会保存在以下位置: Windows C:\Users\username\AppData\Roaming\npm\node_modules