首页 > 解决方案 > “npm r build”和“npm run build”的区别?

问题描述

最近我尝试使用“ npm r build”作为简化为“ npm run build”,但我发现这两个是不同的。我想知道“ npm r build”是做什么的?

标签: javascriptnpm

解决方案


命令记录在案。如果您键入:

npm help r
npm help run

...程序将在您的默认浏览器中打开相应的手册页。它们是本地文件,因此您甚至不需要互联网连接:

npm-uninstall

Remove a package
SYNOPSIS

npm uninstall [<@scope>/]<pkg>[@<version>]... [-S|--save|-D|--save-dev|-O|--save-optional|--no-save]

aliases: remove, rm, r, un, unlink
npm-run-script

Run arbitrary package scripts
SYNOPSIS

npm run-script <command> [--silent] [-- <args>...]

alias: npm run

推荐阅读