Increase network timeout connection for Yarn users

This commit is contained in:
Aurélien Georget 2022-03-21 14:51:07 -07:00
parent 6df5d8d11f
commit f3b4cf6486
No known key found for this signature in database
GPG Key ID: CDB5CB031DED1215

View File

@ -181,6 +181,9 @@ module.exports = async function createProject(scope, { client, connection, depen
const installArguments = ['install', '--production', '--no-optional'];
function runInstall({ rootPath, useYarn }) {
if (useYarn) {
// Increase timeout for slow internet connections.
installArguments.push('--network-timeout 1000000');
return execa('yarnpkg', installArguments, {
cwd: rootPath,
stdin: 'ignore',