新增于:v11.10.0
🌐 Added in: v11.10.0
打印当前包前缀目录——包含最近的 package.json 的目录。
🌐 Prints the current package prefix directory — the directory containing the closest package.json.
🌐 Options
--global, -g
改为打印全局前缀目录。
🌐 Prints the global prefix directory instead.