Or 3. Use the NPM_FLAGS environment variable to define the flag to be used by Netlify at build time:
NPM_FLAGS