Prevent install of native modules

I have a private NPM module which is included in my Git repository. When I deploy to Heroku, their build engine can figure out that they shouldn’t fetch that module as they see it as a native module.
How can I make CircleCI do the same?