Skip to content

Commit 11b5ab7

Browse files
committed
fix: remove npx dependency from install script
Replace 'npx node-gyp' commands with direct 'node-gyp' calls to support Node.js + pnpm environments without npm/npx installed.
1 parent 51ca7cb commit 11b5ab7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/install.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ try {
7575

7676
try {
7777
console.log('🔨 Running node-gyp rebuild with verbose output...');
78-
execSync('npx node-gyp rebuild --verbose', {
78+
execSync('node-gyp rebuild --verbose', {
7979
cwd: baseDir,
8080
stdio: 'inherit',
8181
env: {
@@ -93,7 +93,7 @@ try {
9393
// Try alternative approach with explicit make path
9494
console.log('🔄 Trying alternative build approach with explicit make...');
9595
try {
96-
execSync('npx node-gyp configure && /usr/bin/make BUILDTYPE=Release -C build', {
96+
execSync('node-gyp configure && /usr/bin/make BUILDTYPE=Release -C build', {
9797
cwd: baseDir,
9898
stdio: 'inherit'
9999
});
@@ -109,7 +109,7 @@ try {
109109
mkdirSync(objDir, { recursive: true });
110110

111111
// Try building again
112-
execSync('npx node-gyp build', {
112+
execSync('node-gyp build', {
113113
cwd: baseDir,
114114
stdio: 'inherit'
115115
});

0 commit comments

Comments
 (0)