猩星文档
/
npm8中文文档
npm 8.19.1
1
CLI 命令
1-49
npm search
1-49-3
配置
1-49-3-1 `long`
1-49-3-2 `json`
1-49-3-3 `color`
1-49-3-4 `parseable`
1-49-3-5 `description`
1-49-3-6 `searchopts`
1-49-3-7 `searchexclude`
1-49-3-8 `registry`
1-49-3-9 `prefer-online`
1-49-3-10
`prefer-offline`
1-49-3-11 `offline`
npm 8.19.1
/
CLI 命令
/
npm search
/
配置
/
`prefer-offline`
中英双语
默认值:假
类型:布尔值
如果为 true,将绕过缓存数据的过时检查,但将从服务器请求丢失的数据。要强制完全离线模式,请使用
--offline
。
上一章:
`prefer-online`
下一章:
`offline`