mirror of
https://github.com/strapi/strapi.git
synced 2025-12-26 06:35:47 +00:00
Increase network timeout connection for Yarn users
This commit is contained in:
parent
6df5d8d11f
commit
f3b4cf6486
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user