I am using pnpm for my 11ty site plus a few serverless functions. When Netlify is packaging my functions it errors out. It doesn't do this when I build locally only when it is built on Netlify. Note I don't have zip-it-and-ship-it in my package.json — not needed as this is a built in Netlify function. I switched to npm and it works fine so definitely a pnpm issue.
3:17:23 PM: Dependencies installation error
3:17:23 PM: ────────────────────────────────────────────────────────────────
3:17:23 PM:
3:17:23 PM: Error message
3:17:23 PM: A Netlify Function failed to require one of its dependencies.
3:17:23 PM: Please make sure it is present in the site's top-level "package.json".
3:17:23 PM: In file "/opt/build/repo/functions/function-name.js"
3:17:23 PM: Cannot find module 'follow-redirects'
3:17:23 PM: Require stack:
3:17:23 PM: - /opt/buildhome/node-deps/node_modules/@netlify/zip-it-and-ship-it/dist/runtimes/node/bundlers/zisi/resolve.js