Cannot find module / ModuleNotFoundError / No such file or directory

Node.js and Python issues

Updated Jul 7, 2026

Node.js: Cannot find module 'MODULENAME OR FILE DIRECTORY'

Python: ModuleNotFoundError: No module named 'MODULENAME' or /usr/local/bin/python: can't open file '/home/container/bot.py': [Errno 2] No such file or directory

This error usually has one of these causes:

  1. Your code or startup settings look for a file in a specific directory, but the file is not there. Make sure the file exists, has no spaces before or after its name, and is in the correct directory.
  2. A package required by your code is missing on the server. This usually means you did not upload the package.json file or did not fill in the startup field/package tab correctly. Follow Set Up a Server (legacy panel) or Set Up a Server (new panel) for the fix.
  3. Another error happened first. Check the earlier console output. If you still cannot identify the root cause, open a support ticket.