From 18e63bf2dc62357bc6efcccddf35148f306369fa Mon Sep 17 00:00:00 2001 From: Isaac Date: Sun, 14 Jan 2024 22:18:39 +0000 Subject: [PATCH] fix: `postinstall` search path --- scripts/postinstall.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/postinstall.js b/scripts/postinstall.js index 78ef91b2c..134be3768 100644 --- a/scripts/postinstall.js +++ b/scripts/postinstall.js @@ -21,7 +21,7 @@ function log(...strings) { async function npx(cmd) { const parts = cmd.split(' '); // fallback for environments with no symlink/npx support (PebbleHost) - if (!fs.existsSync(`./node_modules/.bin/${parts[0]}`)) { + if (!fs.existsSync(pathify(`./node_modules/.bin/${parts[0]}`))) { const x = parts.shift(); cmd = 'node ' + fallback[x] + ' ' + parts.join(' '); } else {