Packages

Search npm or PyPI, add a package in one click, and it installs at the next start.

Updated Dec 1, 2026

The Packages tab edits your dependency file for you. It exists for runtimes that use a package manifest.

Runtime Registry File edited Installed at start with
Node.js, Nodemon npm package.json npm install
Bun npm package.json bun install
Python PyPI requirements.txt pip install

Other runtimes manage dependencies from their own files at each start (composer.json for PHP, go.mod for Go, Cargo.toml for Rust, package.lua for Lua). See Deployment Types and Runtimes. The tab needs the Files permission.

How installation works

You never run the install yourself. Each start runs the package manager on your manifest, then starts your app. So any change to your packages takes effect at the next restart.

Add a package

  1. Open the deployment, then Packages (under More, or from Settings).
  2. Under Add a package, type a name in Package. Suggestions come from npm or PyPI.
  3. Pick a Version. latest (auto-update) installs the newest version at each start. You can also pick a precise stable version or a pre-release.
  4. For Node.js, check Add as dev dependency if the package is only needed for development.
  5. Click Add.

The panel checks that the package exists. If the manifest does not exist yet, it is created with your first package. When it is saved, the page says Saved to the file and reminds you to restart the deployment.

A precise version is saved as ^1.2.3 in package.json (compatible updates allowed) and as ==1.2.3 in requirements.txt (exact version).

Manage declared packages

Declared packages lists what your manifest contains, grouped as Dependencies and Dev dependencies (or Packages for Python).

  • Change version opens the version list of that package. Pick one and click Apply.
  • Remove deletes it from the manifest.
  • Refresh reads the file again, for example after you edited it in the Files tab.

Lines that the tab does not understand (options, URLs, environment markers) appear under Other entries and are kept as they are. Edit them in the Files tab.

Install by hand

You can also edit package.json or requirements.txt in the Files tab, or run a command in the console shell, for example npm install express or pip install -r requirements.txt. A package installed by hand but missing from the manifest is not reinstalled after a reinstall, so keep the manifest up to date.

The manifest lists package names, never commands. npm install discord.js inside a file does nothing.

Common errors

Error in the console Cause
Error: Cannot find module 'name' The package is missing from package.json, or the install failed. Read the install lines above the error
npm error 404 Not Found The package name is wrong or does not exist
ModuleNotFoundError: No module named 'name' The package is missing from requirements.txt. The PyPI name can differ from the import name (discord.py installs discord)
Could not find a version that satisfies the requirement The name is wrong, or the version does not support your Python version

For native packages such as better-sqlite3, see better-sqlite3 Error.