npm prune
删除多余的包
概要
npm prune [[<@scope>/]<pkg>...] [--production] [--dry-run] [--json]
描述
此命令删除 "extraneous" 包。如果提供了包名称,则仅删除与提供的名称之一匹配的包。
无关的包是那些存在于 node_modules
文件夹中的包,它们没有被列为任何包的依赖项列表。
如果指定了 --production
标志或 NODE_ENV
环境变量设置为 production
,则此命令将删除您的 devDependencies
中指定的包。设置 --no-production
将否定 NODE_ENV
设置为 production
。
如果使用 --dry-run
标志,则实际上不会进行任何更改。
b8+qMvCmHyzgx9yHozcMz7dh5fp7y5v2IzHLzed+iOMMAuhYXB77q78uA5B/9D16OjcsgLjTpAdO4YoYkBAcegsanWl4FUfGxwDydMAAg9yOBE/v/L+35rUuLYxUug9XnsHncOlAuBjfJRW1e4CbLSqr/3uMv6bjhyEzG2h4UAX1VyOeaBi356hzHFuyvFi/1D/O5fhY8ziLit364PqPNaSHbDAonYVM6Msep53EOQE=
EJ3AhNySKWN6HgDdvzqmQr35F8fY0rHHdncio0NkUHO38L2lsYsfkIjjbeUSuTNylpfifIO2/1cbheE+1eG6GUGC8SlcEOZAUYIukJcrXIyfZKFr9PBBMpUiOYYAnRi4QDfXX6EvBPs1f6lTFK41F2VVjxbrp7WKwCH8ysTWax2rgCQa7GwrRJNw2xe9/KeVjlzPmemhVXdKDM61sSuIJOQ0g611o0tsbMcDIecjlf9NxFcP9Pk5PuUewPnIxCr7hbOdM0NKzymsZUD9oakpG+6QJdeu+FPrGRPHoCeQ8dEu05pwvSHfegpROI7a57CMF+NzrmDeXHl3ZEL/cw4z/5qWjMNdK2F2XTllEJ2vDYA=
配置
omit
- b0hrlHHbrsBd1+jTjC8F8Cl26Ry8fpeoBt3N5PMiq5g8qsiHkuBqk6ZzrngmehksWfdGgwMo+h4Pb9cgi+mEldJ3p3b8Tp5/CxBH30/aX6Uz/0s1XdnjK1y5HbyjuOdbenSWbNn2MadQHYSS2E6Va16Td832/XIr69nxeYT2JRzQ35p+AF4xcZ/X4kaQpnvFAWDWslrmiLfJZZ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