Search Issue Tracker
Fixed in 2021.2.X
Fixed in 2019.4.X, 2020.3.X, 2021.1.X
Packages cannot be added from a registry that returns invalid publish dates [Windows-only]
As reported on the Unity forums, adding packages from the Github npm package registry produces the following error on Windows:
Cannot perform upm operation: EINVAL: invalid argument, utime
It turns out this caused by the publish dates that Github uses for newly published package versions: 0001-01-01T00:00:00.000Z
This is likely on error on Github's part since this is not an accurate publish date but it should not cause the Package Manager to fail. We should treat invalid dates the same way we treat missing publish dates, which is a use case we support.
Follow this guide to create a package that can be published to the Github npm package registry
From the package folder, run npm publish
In the Unity editor, go to the Package Manager window
Click the "+" icon and "Add package by name"
Enter the name of the package you published to the Github registry
The package should be added to the project.
Adding the package fails with the error Cannot perform upm operation: EINVAL: invalid argument, utime
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
- [Android 5.1] Player is stuck on splash screen when opening a specific project
- [Linux] Editor crashes at "GeometryBuffersBase::GetRuntimeMemorySize()" after a couple minutes when the Profiler window is open and recording while in Play Mode
- GameObject children move un-accordingly when moving the parent GameObject in the Scene View
- Tags remove option "-" (minus) is active even tag item isn't selected
- Returned "TimeSpan" value is 0 when the Test Runner tests have been completed