# npm prefix > 将本地或全局前缀打印到标准输出。 > 更多信息:。 - 打印本地前缀: `npm prefix` - 打印全局前缀: `npm prefix {{[-g|--global]}}`