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.
- [Xcode] "InfoPlist (English)" is required when "InfoPlist (English (United States))" already exists
- [tvOS] Crash when closing the On Screen Keyboard with tvOS version <15.0
- Temporal Anti-aliasing (TAA) produces severe artifacting when quality set to Very High
- [iOS] Player crashes when using “WebCamTexture” on specific iOS devices
- [Linux][IL2CPP] Player crash call stack is not displayed when the build is run with "-batchmode -nographics" arguments