Git submodule with dependencies

Hi, I have a project that has a git submodule that on its own has NPM dependencies. Locally, I would change directory to the submodule folder and run npm i to install them, but I have no idea how to do the equivalent on Netlify builds.

Are there any possible solutions that I can adapt besides adding those dependencies to my main git repo?


Hi @peiling! Welcome to netlify community.

Have you seen this post? It may help you with your situation: [Support Guide] How do I access private repositories in the build environment?

1 Like