如何查看wsl里面的npm里安装的包?
- User
如何查看wsl里面的npm里安装的包?
Assistant
要查看WSL里面通过npm安装的包,你可以使用以下命令:
-
查看当前项目安装的本地包:
npm list -
查看全局安装的包:
npm list -g -
如果只想查看顶层包(不显示依赖关系):
npm list --depth=0 -
查看全局安装的顶层包:
npm list -g --depth=0
你需要先打开WSL终端(通过Windows终端输入
wsl或直接启动你的WSL发行版),然后运行这些命令。-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.