Skip to content

Commit

Permalink
fix: postinstall search path
Browse files Browse the repository at this point in the history
  • Loading branch information
eartharoid committed Jan 14, 2024
1 parent db4fd84 commit 18e63bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 18e63bf

Please sign in to comment.