diff --git a/install-spawn.js b/install-spawn.js index 7bd28f1..eb157cc 100644 --- a/install-spawn.js +++ b/install-spawn.js @@ -19,7 +19,7 @@ module.exports = function npmInstallNpm(fullIcu, advice) { var args; - if ( /yarn(\.js)?$/.test(npmPath) ) { + if ( /yarn((.*cli)?\.js)?$/.test(npmPath) ) { console.log('Looks like you are using yarn…'); installVerb = 'add'; args = [ npmPath, 'add', icupkg, '--no-lockfile', '--ignore-scripts' ];