How do I install my bot’s dependencies?
Install Node.js or Python bot dependencies with npm ci or pip, use lockfiles correctly, and fix common package installation and build errors.
Step-by-step procedure
-
Install Node.js dependencies
Keep package.json and its lockfile, then run npm ci for a clean, reproducible installation.
-
Install Python dependencies
Keep requirements.txt or pyproject.toml, then install packages with pip in the server environment.
-
Read the first useful error
Check the runtime version, missing system packages, and whether the lockfile is current.
-
Restart and verify the bot
Restart the service after a successful installation, then confirm that the bot loads without errors.