diff --git a/lib/producer.ts b/lib/producer.ts index c26e2f2a..ab87f998 100644 --- a/lib/producer.ts +++ b/lib/producer.ts @@ -235,6 +235,8 @@ function nativePrebuildInstall(target: Target, nodeFile: string) { if (napiVersions == null) { // TODO: consider target node version and supported n-api version options.push('--target', nodeVersion); + } else { + options.push('--runtime', 'napi'); } // run prebuild