# 使用 Homebrew, MacPorts, pacman 安装 spidermonkey

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

## 安装

```sh
sudo av install brew:spidermonkey
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install spidermonkey
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install spidermonkey
```

  证据: MacPorts ports tree: lang/spidermonkey/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- pacman (92%):

```sh
sudo pacman -S js140
```

  证据: Arch Linux sync databases: js140 from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## 软件包事实

- **软件包键:** brew:spidermonkey
- **软件包管理器:** Homebrew
- **版本:** 140.13.0
- **来源摘要:** JavaScript-C Engine
- **主页:** <https://spidermonkey.dev>
- **最后更新:** 2026-07-21T17:12:11Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- js (别名)
- js140 (别名)
- js140-config (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 140.13.0
## 项目历史与用法

SpiderMonkey is Mozilla's JavaScript and WebAssembly engine. It is best known as the JavaScript engine inside Firefox, but package managers also expose it as an embeddable engine and standalone JS shell.

### 项目历史

Mozilla's JavaScript engine blog says Brendan Eich wrote the first SpiderMonkey version in 1995. Current Mozilla documentation describes SpiderMonkey as the JavaScript and WebAssembly implementation library of Firefox, with behavior defined by the ECMAScript and WebAssembly specifications.

### 采用历史

SpiderMonkey's main adoption path is Firefox, but its standalone shell and embedding APIs have long made it useful to developers, testers, and distribution packagers. The spidermonkey.dev homepage says it is used in Firefox, Servo, and other projects, can be embedded in C++ and Rust projects, run as a standalone shell, and compiled to WASI.

### 使用方式

Package users often install SpiderMonkey for the js shell, development headers, or embedding experiments rather than as a user-facing app. Mozilla's build documentation describes using mach to build the JS shell, running it with mach run, and testing with jit-tests and jstests.

### 为什么软件包爱好者会关心

SpiderMonkey matters to package nerds because it is a major browser engine component exposed as a standalone runtime package. Its versioned shells, embedding headers, JIT behavior, WebAssembly support, and test-suite expectations make it a recurring dependency and compatibility target across language-runtime packaging.

### 时间线

- 1995: Brendan Eich writes the first SpiderMonkey version.
- 2000s: SpiderMonkey continues as Mozilla's core JavaScript engine and accumulates shell, embedding, and test infrastructure.
- 2010s: Mozilla documents major engine internals and performance work through the JavaScript engine blog and source docs.
- 2020s: SpiderMonkey is documented as a JavaScript and WebAssembly engine used in Firefox and embeddable in C++ and Rust.

### Related projects

- Firefox is the primary consumer and source tree for SpiderMonkey.
- Servo is listed by spidermonkey.dev as a user of the engine.
- ECMAScript and WebAssembly specifications define the behavior SpiderMonkey implements.
- Searchfox and Firefox Source Docs are common navigation surfaces for the source.

### 来源

- <https://api.github.com/repos/mozilla-firefox/firefox>
- <https://blog.mozilla.org/javascript/2014/07/21/slimmer-and-faster-javascript-strings-in-firefox/>
- <https://firefox-source-docs.mozilla.org/js/>
- <https://firefox-source-docs.mozilla.org/js/build.html>
- <https://github.com/mozilla-firefox/firefox>
- <https://spidermonkey.dev/>


## 安全说明

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


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

- MacPorts - spidermonkey: normalized package name match | MacPorts ports tree: lang/spidermonkey/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- pacman - js140 - 140.13.0-1: installed executable or alias match | Arch Linux sync databases: js140 from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | JavaScript interpreter and libraries - Version 140 | https://spidermonkey.dev/


## Combined YAML source

View the package source record on GitHub. [combined/spidermonkey.yml](https://github.com/mxcl/pkgdb/blob/main/combined/spidermonkey.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
