We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.includes()
1 parent d3df005 commit 2cb5e6cCopy full SHA for 2cb5e6c
src/util/execute-lifecycle-script.js
@@ -141,7 +141,7 @@ export async function executeLifecycleScript(
141
// Add global bin folder if it is not present already, as some packages depend
142
// on a globally-installed version of node-gyp.
143
const globalBin = getGlobalBinFolder(config, {});
144
- if (!pathParts.includes(globalBin)) {
+ if (pathParts.indexOf(globalBin) === -1) {
145
pathParts.unshift(globalBin);
146
}
147
0 commit comments