@Goues I might be wrong, but I don’t believe it’s possible to skip the automatic dependency install that happens pre-build based on the dependency definition files that Netlify locates.
Another user proposes a workaround in this thread where they point Netlify at an otherwise empty build folder, so that dependencies aren’t auto-installed, and then they cd to the real folder and run only the commands they need to.