Skip to content

Commit 2cb5e6c

Browse files
BYKcpojer
authored andcommitted
Fix: Fix Node 4 by not using .includes() (#3654)
1 parent d3df005 commit 2cb5e6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/execute-lifecycle-script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export async function executeLifecycleScript(
141141
// Add global bin folder if it is not present already, as some packages depend
142142
// on a globally-installed version of node-gyp.
143143
const globalBin = getGlobalBinFolder(config, {});
144-
if (!pathParts.includes(globalBin)) {
144+
if (pathParts.indexOf(globalBin) === -1) {
145145
pathParts.unshift(globalBin);
146146
}
147147

0 commit comments

Comments
 (0)