依赖项

每当 npm 命令导致 node_modules 目录发生更改时,都会运行 dependencies 脚本。它在应用更改并更新 package.jsonpackage-lock.json 文件之后运行。

The dependencies script is run any time an npm command causes changes to the node_modules directory. It is run AFTER the changes have been applied and the package.json and package-lock.json files have been updated.