Private NPM registry install does not work on Worker Builds

I'm not quite sure what the issue is but there appears to be one. I setup my workers build exactly the same as my pages build with an NPM_TOKEN set in the build env. However sometimes the build fails with ''' npm error 404 Not Found - GET https://gitlab.com/api/v4/projects/#####/packages/npm/@####/###/-/@#####/###-#.#.##.tgz - Project not found npm error 404 npm error 404 '@######/###@https://gitlab.com/api/v4/projects/#####/packages/npm/@#####/###/-/@####/###-#.#.##.tgz' is not in this registry. ''' Sometimes the build works even if i change nothing, maybe the build cache is shared between pages and worker builds? and it gets the version from there when the pages build completes with the same package version? But is is also not reliable so i'm not quite sure what the problem is. Once the build works one time with a version it continues to work with that version, most likely due to the build cache? any help would be appreciated
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?