wwforonce commited on
Commit
965af9a
·
1 Parent(s): 115355f

fix nvm cache path

Browse files
Files changed (1) hide show
  1. start_with_sync.sh +12 -1
start_with_sync.sh CHANGED
@@ -29,6 +29,17 @@ curl -LsSf https://astral.sh/uv/install.sh | env UV_UNMANAGED_INSTALL="/tmp/bin
29
  #source /tmp/bin/env
30
  export PATH="/tmp/bin:$PATH"
31
 
 
 
 
 
 
 
 
 
 
 
 
32
  uv venv /tmp/.venv
33
  source /tmp/.venv/bin/activate
34
  uv pip install --no-cache-dir \
@@ -131,7 +142,7 @@ git clone https://github.com/waxz/gemini-cli-openai /tmp/gemini-cli-openai
131
 
132
  git clone https://github.com/snailyp/gemini-balance.git /tmp/gemini-balance
133
 
134
-
135
  uv pip install -r /tmp/gemini-balance/requirements.txt
136
 
137
 
 
29
  #source /tmp/bin/env
30
  export PATH="/tmp/bin:$PATH"
31
 
32
+ # set nvm cache directory
33
+ export NPM_CONFIG_CACHE=/tmp/.npm_cache
34
+
35
+
36
+ # Ensure the custom cache directory exists for npm (though /tmp generally is fine)
37
+ # It's good practice to create it, and it will be owned by `appuser` if `USER appuser` is active.
38
+ # No need to mkdir for UV_CACHE_DIR as uv will create it if needed.
39
+ mkdir -p ${NPM_CONFIG_CACHE}
40
+
41
+
42
+
43
  uv venv /tmp/.venv
44
  source /tmp/.venv/bin/activate
45
  uv pip install --no-cache-dir \
 
142
 
143
  git clone https://github.com/snailyp/gemini-balance.git /tmp/gemini-balance
144
 
145
+ source /tmp/.venv/bin/activate
146
  uv pip install -r /tmp/gemini-balance/requirements.txt
147
 
148