Skip to content

Commit f9503b4

Browse files
interpretorlgeiger
authored andcommitted
Fix path error in npm installation
1 parent 9813786 commit f9503b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/prebuild-install.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
var exec = require('child_process').exec;
22

3-
var path = './node_modules/prebuild-install/bin.js';
3+
var pbi = 'prebuild-install';
44
var platform = process.platform;
55
var arch = process.arch;
66

77
if (platform === 'linux' && arch === 'arm') {
88
arch += 'v' + process.config.variables.arm_version;
9-
path += ' --arch=' + arch;
9+
pbi += ' --arch=' + arch;
1010
}
1111

12-
exec(path, function(err, stdout, stderr) {
12+
exec(pbi, function(err, stdout, stderr) {
1313
console.log(stdout);
1414
console.log(stderr);
1515
if (err) process.exit(1);

0 commit comments

Comments
 (0)