故意限制
¥Intentional limitations
node --run 并不意味着与其他包管理器的 npm run 或 run 命令的行为相匹配。Node.js 的实现有意受到更多限制,以便专注于最常见用例的最佳性能。故意排除的其他 run 实现的一些功能包括:
¥node --run is not meant to match the behaviors of npm run or of the run
commands of other package managers. The Node.js implementation is intentionally
more limited, in order to focus on top performance for the most common use
cases.
Some features of other run implementations that are intentionally excluded
are:
-
除了指定的脚本之外,还运行
pre或post脚本。¥Running
preorpostscripts in addition to the specified script. -
定义特定于包管理器的环境变量。
¥Defining package manager-specific environment variables.