NPM 常用命令(二)
网络编程
目录
1、npm bugs
1.1 配置
browser
registry
2、npm cache
2.1 概要
2.2 详情
2.3 关于缓存设计的说明
2.4 配置
cache
3、 npm ci
3.1 描述
3.2 配置
install-strategy
legacy-bundling
global-style
omit
strict-peer-deps
foreground-scripts
ignore-scripts
audit
bin-links
fund
dry-run
workspace
workspaces
include-workspace-root
install-links
1、npm bugs
npm bugs
运行此命令会打开当前包在npm注册中对应的页面,如果没有提供包名,它将在当前文件夹中搜索package.json
并使用name
属性。
例如在以下路径中,执行npm bugs命令,如下如所示:
也可以直接指定包名,在npm注册中心打开包对应的路径。例如:
npm bugs jiang-isarry
1.1 配置
browser
默认值: OS X:"open"
,Windows:"start"
、其他:"xdg-open"
类型: 空值、布尔值或字符串 设置为false
以抑制浏览器行为,而是将 url 打印到终端。
设置为true
以使用默认系统 URL 打开器。
registry
默认值: "https://registry.npmjs.org/"类型: URL npm 注册表的基本 URL。
2、npm cache
2.1 概要
npm cache 常用的命令如下所示:
npm cache add
编辑:广州明生医药有限公司
标签:缓存,默认值,类型,命令,工作