Repository navigation
fix(box)+fix(cli): caché npm del Box sin entradas de root; el CLI rodea una caché ajena e instala expo cuando falta - #1011
Closed
edgar-durand wants to merge 1 commit into
Closed
edgar-durand wants to merge 1 commit into
edgar-durand wants to merge 1 commit into
Conversation
…s npm cache; the CLI routes npm around a foreign cache and installs expo itself v2.76.41's image ran 'npm install -g expo' as root with npm_config_cache=/opt/npm-cache, so every 'npm install' of the box user failed EACCES on '_cacache/index-v5/…' (unfixable inside a --cap-drop ALL container): the preview's dependency installs died on every new Box. The bake now uses its own cache, chowns the box's and the build fails on any entry the box does not own. npmCacheOverride (run-setup.ts) points npm at ~/.npm when the configured cache holds another user's entries — boxes created with the bad image heal on the next install. The Expo bring-up also installs 'expo' itself (SDK from the project's react-native) when a project lacks it: a Remix MOBILE project's export declared only expo-* modules, and 'expo start' needs expo. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Collaborator
Author
|
Reabierto como un PR nuevo con el mensaje de commit dentro del límite de commitlint. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
La imagen v2.76.41 corrió
npm install -g expocomo root connpm_config_cache=/opt/npm-cache: cadanpm installdel usuario box fallaba con EACCES (irreparable dentro de un contenedor--cap-drop ALL) y la instalación de dependencias del preview moría en todo Box nuevo. El bake usa su propia caché, hace chown de la del box y el build falla si queda una entrada ajena.npmCacheOverrideapunta npm a ~/.npm cuando la caché configurada tiene entradas de otro usuario (los Boxes creados con la imagen mala se curan solos). El arranque de Expo instala tambiénexpo(SDK deducido del react-native del proyecto) cuando el proyecto no lo tiene: la exportación de un proyecto MOBILE de Remix solo declaraba módulos expo-*.🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need.