猩星文档 / npm8中文文档
    • npm 8.19.1
    • 3  使用 npm
    • 3-6  scripts
    • 3-6-1  描述
    • 3-6-2  前后脚本
    • 3-6-3  生命周期脚本
    • 3-6-4  生命周期操作顺序
    • 3-6-4-1  [`npm cache add`](/cli/v8/commands/npm-cache)
    • 3-6-4-2  [`npm ci`](/cli/v8/commands/npm-ci)
    • 3-6-4-3  [`npm diff`](/cli/v8/commands/npm-diff)
    • 3-6-4-4  [`npm install`](/cli/v8/commands/npm-install)
    • 3-6-4-5  [`npm pack`](/cli/v8/commands/npm-pack)
    • 3-6-4-6  [`npm publish`](/cli/v8/commands/npm-publish)
    • 3-6-4-7  [`npm rebuild`](/cli/v8/commands/npm-rebuild)
    • 3-6-4-8  [`npm restart`](/cli/v8/commands/npm-restart)
    • 3-6-4-9  [`npm run`](/cli/v8/commands/npm-run-script)
    • 3-6-4-10  [`npm start`](/cli/v8/commands/npm-start)
    • 3-6-4-11  [`npm stop`](/cli/v8/commands/npm-stop)
    • 3-6-4-12  [`npm test`](/cli/v8/commands/npm-test)
    • 3-6-4-13  [`npm version`](/cli/v8/commands/npm-version)
    • 3-6-4-14  关于缺少 [`npm uninstall`](/cli/v8/commands/npm-uninstall) 脚本的说明
    • 3-6-5  用户
    • 3-6-6  环境
    • 3-6-7  示例
    • 3-6-8  退出
    • 3-6-9  最佳实践
npm 8.19.1/ 使用 npm/ scripts/

生命周期操作顺序

  • [`npm cache add`](/cli/v8/commands/npm-cache)
  • [`npm ci`](/cli/v8/commands/npm-ci)
  • [`npm diff`](/cli/v8/commands/npm-diff)
  • [`npm install`](/cli/v8/commands/npm-install)
  • [`npm pack`](/cli/v8/commands/npm-pack)
  • [`npm publish`](/cli/v8/commands/npm-publish)
  • [`npm rebuild`](/cli/v8/commands/npm-rebuild)
  • [`npm restart`](/cli/v8/commands/npm-restart)
  • [`npm run`](/cli/v8/commands/npm-run-script)
  • [`npm start`](/cli/v8/commands/npm-start)
  • [`npm stop`](/cli/v8/commands/npm-stop)
  • [`npm test`](/cli/v8/commands/npm-test)
  • [`npm version`](/cli/v8/commands/npm-version)
  • 关于缺少 [`npm uninstall`](/cli/v8/commands/npm-uninstall) 脚本的说明
上一章: 依赖项
下一章: [`npm cache add`](/cli/v8/commands/npm-cache)