Dev tools 21
npm, Node.js, Python and Git errors: the exact message, why it happens, and the command that fixes it — reproduced in a clean container.
- OpenTofu 1.13.11: Set bastion_host_key After Updating
OpenTofu 1.13.11 checks the bastion with bastion_host_key. With only host_key set, that check is silently off. Set the key for each server.
OpenTofu 1.13.11 · Debian 13 trixie (Docker) · OpenSSH 10.0p2 - ty 1.0: Try It on a Project That Uses mypy
Run ty 1.0.0 and mypy 2.4.1 on the same code, see where they differ, check exit codes and old type-ignore comments, and diff what --fix and --add-ignore edit.
Python 3.13.18 (Docker python:3.13-slim) · ty 1.0.0 · mypy 2.4.1 · 2026-12 - Fix error: pathspec did not match any file(s) known to git
error: pathspec did not match any file(s) known to git means no branch or file has that name. Check unfetched branches, case, shallow clones, cmd quotes.
Ubuntu 24.04 (Docker) · git 2.43.0 · 2026-10 - Fix gyp ERR! find Python and Error: not found: make
gyp ERR! find Python or Error: not found: make means npm has no tools to build a native module. Install python3, make and g++, or use a prebuilt binary.
Node.js 22.23.4 · npm 10.9.9 · node-gyp 11.5.0 · Debian 12 (Docker node:22-slim) · 2026-10 - Fix npm install -g EACCES: permission denied without sudo
npm install -g fails with EACCES permission denied when the global folder is owned by root. Move npm's prefix to ~/.local and fix PATH instead of using sudo.
Node.js 22.23.4 · npm 10.9.9 (Docker node:22-slim) · 2026-10 - Fix ModuleNotFoundError: No module named after pip install
pip install worked but you get ModuleNotFoundError: No module named? pip and python point at different environments. Compare two paths and use python -m pip.
Python 3.12.16 · pip 25.0.1 (Docker python:3.12-slim) · 2026-10 - Fix npm ENOENT: Could not read package.json
npm ENOENT Could not read package.json means the folder npm uses as the project has no package.json. Read the path line, then cd or use --prefix.
Node.js 22.23.4 · npm 10.9.9 · npm 9.9.4 · npm 11.19.1 (Docker node:*-slim) · 2026-10 - Fix pip SSL: CERTIFICATE_VERIFY_FAILED behind a proxy
pip SSL: CERTIFICATE_VERIFY_FAILED means pip doesn't trust your proxy's or private index's CA. Check the issuer, then add it to the OS store, --cert, PIP_CERT.
Python 3.12.16 · pip 25.0.1 (Docker python:3.12-slim) · 2026-10 - Fix UnicodeDecodeError: 'utf-8' codec can't decode byte
UnicodeDecodeError 'utf-8' codec can't decode byte means a non-UTF-8 file was read as UTF-8. Use the byte value to spot cp1252, a BOM or gzip; set encoding=.
Python 3.12.16 (Docker python:3.12-slim) · 2026-10 - Fix SyntaxError: Cannot use import statement outside a module
Cannot use import statement outside a module means Node loaded the file as CommonJS. Check package.json type and Node version; fix ERR_REQUIRE_ESM too.
Node.js 18.20.8 · 20.20.2 · 22.23.4 · 24.22.1 (Docker node:*-slim) · 2026-10 - Fix git push rejected (fetch first / non-fast-forward)
git push ! [rejected] (fetch first) or (non-fast-forward) means the remote has commits you lack. Use pull --rebase; force-push only with --force-with-lease.
Ubuntu 24.04 (Docker) · git 2.43.0 · 2026-10 - Fix pip subprocess-exited-with-error: Failed building wheel
pip subprocess-exited-with-error and Failed building wheel mean the build failed, usually a source build with no wheel. Read the line above [end of output].
Python 3.12.16 · pip 25.0.1 · Debian 13 (Docker python:3.12-slim) · 2026-10 - Fix git "detected dubious ownership in repository" error
git says detected dubious ownership when the repo owner differs from the user running git. Fix the owner, or add just that path to safe.directory.
Ubuntu 24.04 (Docker) · git 2.43.0 · Alpine 3.22 · git 2.49.1 · 2026-10 - Fix error:0308010C:digital envelope routines::unsupported
webpack 4 on Node 22 or 24 failing with error:0308010C digital envelope routines::unsupported is the md4 hash. Upgrade to 4.47.0; legacy flag only briefly.
Node.js 22.23.4 · OpenSSL 3.5.9 · webpack 4.46.0 · 4.47.0 (Docker node:22-slim) · 2026-10 - Fix GitHub Support for password authentication was removed
GitHub Support for password authentication was removed: Git sent your password over HTTPS. Use a personal access token and erase the saved old password.
Ubuntu 24.04 (Docker) · git 2.43.0 · GitHub official docs · 2026-10 - Fix pip error: externally-managed-environment on Ubuntu 24.04
pip install fails with error: externally-managed-environment on Ubuntu 24.04 because apt owns the system Python. Use a venv, pipx, or apt instead.
Ubuntu 24.04 · Python 3.12.3 · pip 24.0 · pipx 1.4.3 (Docker) · 2026-10 - Fix git@github.com Permission denied (publickey)
git@github.com Permission denied (publickey): ssh offered no key GitHub accepts. Run ssh -vT to see the keys tried, then check key, agent and user.
Ubuntu 24.04 (Docker) · OpenSSH 9.6p1 · git 2.43.0 · 2026-10 - Fix pip ERROR: No matching distribution found for a package
pip No matching distribution found for means nothing installable fits your setup. The line above it splits name, network, Python version and wheel causes.
Python 3.12.16 · 3.9.25 · pip 25.0.1 (Docker python:*-slim) · 2026-10 - Fix git "fatal: refusing to merge unrelated histories"
git pull fails with refusing to merge unrelated histories when no commit is shared. Check the remote, then merge with --allow-unrelated-histories or rebase.
Ubuntu 24.04 (Docker) · git 2.43.0 · 2026-10 - Node.js --max-old-space-size: Fix JavaScript heap out of memory
JavaScript heap out of memory means Node hit the V8 heap limit. Read heap_size_limit, then set --max-old-space-size below the container memory limit.
Node.js 22.23.4 (node:22-slim Docker · 512 MB, 1 GB, 4 GB containers) · 2026-10 - Fix npm ERR! code ERESOLVE: unable to resolve dependency tree
npm ERESOLVE unable to resolve dependency tree means a peer requirement clashes with your project's version. Read the Found and peer lines, then align them.
Node.js 22.23.4 · npm 10.9.9 (Docker node:22-slim) · 2026-10