Problem
npm start / node --import dotenv/config server.js crashed immediately with:
Error: Cannot find module 'music-tempo'
Require stack:
- audioAnalysis.js
The app never got past startup, so nothing built or ran.
Diagnosis
- Confirmed there's no
buildscript inpackage.json— this is a plain Node/Express app with no build step, so "not building" meant the server process itself was crashing on start. - Ran the start command directly (
node --import dotenv/config server.js) to capture the raw error instead of relying onnpm startoutput. - Error pointed to
audioAnalysis.js:5requiringmusic-tempo. - Checked
node_modules—music-tempowas listed inpackage.jsondependencies but the folder was missing fromnode_modules(only 85 packages present). - Checked
.gitignoreand recent git log —node_modules/had previously been accidentally committed, then removed from tracking (76f1d51 somehow node_modules got committed, removing,b75e771 Remove node_modules from tracking). That cleanup likely left a stale/incompletenode_moduleson disk missing this package.
Fix
Ran npm install, which added the missing music-tempo package (1 package added, 88 audited). Re-ran the server and confirmed clean startup:
Project Posterity running at http://localhost:3000
Follow-up / not yet addressed
npm audit reports 4 vulnerabilities (3 moderate, 1 high) — not investigated yet.