UnityRef is currently in early development. Some features may be incomplete and/or not functioning.

UNITYREF

Your Pit Stop For Solving ANYTHING in Unity

editor

[Package Manager] ETIMEDOUT: Restore Component Downloads Now

Solution

networkingonline services

Unity 2021.x - Unity 6.3.x

Published Sat, Mar 14

Issue

 The Unity Package Manager frequently encounters connection failures during the fetch process, resulting in an ETIMEDOUT error. This network timeout prevents the installation of critical packages like the Input System or AI Navigation.

Quick-Fix

Resolve Package Manager connection errors by manually registering dependencies within the manifest.json file.

Expand Analysis

Address ETIMEDOUT errors preventing Unity Package Manager (UPM) package installation by directly modifying the manifest.json file. This circumvents the connection attempt of the UPM, allowing Unity to process package dependencies upon project reload.

  1. Navigate to the root directory of your project.
  2. Open the Packages folder.
  3. Locate and open the manifest.json file using a text editor.
  4. Manually insert the desired package identifier and version within the dependencies object.
  5. Save the manifest.json file.
  6. Return to the Unity Editor, which automatically monitors changes to the manifest.json and triggers the background download of the specified package.

Additional Tips

  • Ensure that the syntax of the manifest.json remains valid; a missing comma will prevent the project from opening.
  • If the issue persists, check if a UPM_PROXY environment variable is incorrectly configured on the system.
  • Clearing the Package Manager cache in the %LocalAppData%/Unity/cache folder can sometimes resolve persistent metadata conflicts in the manifest.json resolution process.

Copy


{
    "dependencies": {
        "com.unity.ai.navigation": "1.1.7",
        "com.unity.inputsystem": "1.7.0",
        "com.unity.ugui": "1.0.0"
    },
    "scopedRegistries": [
        {
            "name": "Unity npm registry",
            "url": "https://package.unity.com",
            "scopes": [
                "com.unity"
            ]
        }
    ]
}

Related Posts Haven't quite found a solution to your problem? We think these posts might help you.

Content inspired by a Unity discussion post.