# 使用 npm 安装 serverless

查看 serverless 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install npm:serverless
```

其他安装命令:

### 便携式和语言管理器

- npm (100%):

```sh
npm install -g serverless
```

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:serverless
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/serverless>
- **版本:** 4.40.0
- **来源摘要:** Package metadata for serverless, from local pkg.so sources.
- **主页:** <https://github.com/serverless/serverless#readme>
- **仓库:** <https://github.com/serverless/serverless>
- **上游文档:** <https://github.com/serverless/serverless#readme>
- **源码归档:** <https://registry.npmjs.org/serverless/-/serverless-4.40.0.tgz>
- **问题跟踪器:** <https://github.com/serverless/serverless/issues>
- **发布时间:** 2026-07-22T14:10:40.692Z
- **最后更新:** 2026-07-22T14:10:40.692Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- serverless (cli)
- sls (cli)

## 依赖

- rimraf
- undici

## 安装行为

- post-install 钩子: 已定义
- npm 生命周期脚本: postinstall
- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 4.40.0
- 管理器更新时间: 2026-07-22
- 本地数据: OK
- 上游仓库: https://github.com/serverless/serverless
- 信息: No cached GitHub release or tag data was available.

## 安全说明

没有找到 serverless 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** npm registry
- **Dist Tags:** Alpha: 1.17.0-alpha.1, Bea: 1.0.3, Beta: 1.1.0, Canary: 3.40.0-19128fad, Components: 1.63.0-components-v2-beta, Latest: 4.40.0, Latest 1: 1.83.3, Latest 2: 2.72.4, Pre 2: 2.0.0-pre.154d965f, Pre 3: 3.0.0-pre.b463d7e2
- **Version Count:** 2,505
- **Maintainers:** ac360, serverless-main
- **Author:** Serverless Inc.
- **Publisher:** GitHub Actions
- **Engines:** Node: >=18.17.0
- **Integrity:** sha512-5PePQZRgJPbyfSjrZUWL7ys7U50t69EeBhokZnAe3CPedPsFGiVcn0aJHi91dYJDluWfYMDJY5zizkBPp1XHgA==
- **Shasum:** bdae794c2afb6f7dfdcfeaa149dd18972606185b
- **Unpacked Size:** 37,560
- **File Count:** 0
- **Created At:** 2015-11-09T02:16:31.501Z
- **Latest Published At:** 2026-07-22T14:10:40.692Z
- **Modified At:** 2026-07-22T14:10:41.455Z

## 其他软件包管理器记录

- Chocolatey - serverless: normalized package name match | Chocolatey community package catalog: serverless from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','selenium-chrome-driver'
- Scoop - main/serverless: normalized package name match | Scoop official bucket manifest trees: bucket/serverless.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 相关链接

- [Cloud CLI packages](https://pkg.so/zh-hans/cloud-clis/) - Matched curated package taxonomy and local package facts.
- [osls](https://pkg.so/zh-hans/npm/osls/) - Executable or command metadata overlaps with this package. Shared terms: cli, cloud, cloud-infrastructure, infrastructure, serverless.
- [serverless-bundle](https://pkg.so/zh-hans/npm/serverless-bundle/) - Package names and metadata indicate a similar tool family. Shared terms: cli, cloud, cloud-infrastructure, infrastructure, serverless.
- [serverless](https://pkg.so/zh-hans/brew/serverless/) - Same normalized package name appears in another local ecosystem. Shared terms: serverless, sls.
- [serverless](https://pkg.so/zh-hans/brew/serverless/) - Same normalized package name exists in another local package ecosystem.

## 来源

- pkg.so package database
- package-page enrichment
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
