06/02/2022, 11:28 PM
My colleague and I have almost-identical copies of a Pulumi project, but his is failing to resolve NPM packages. It's in a mono-repo shared with the deployed application, and the application isn't having the same issue. Under what circumstances might Pulumi fail to honour .npmrc or other important package-resolving steps?
The Pulumi project is one level below repo root. Repo root contains tsconfig.json, package.json and node_modules,
The modules that can't be resolved are all hosted in a GitHub package registry, and his .npmrc is correct (confirmed since application can resolve the same modules just fine.)
We're both running on WSL2.
yarn install
is correctly getting the modules for us both.