I tried with Termux and proot-distro but it doesn’t work maybe I’m doing something wrong can anyone help me install it
Hi @RandomCodezz,
you mean bolt.new or bolt.diy? The community is about the open source project bolt.diy.
If you really got a problem with bolt.new, open in the corresponding git pls.
Yeah bolt.diy i mistyped
Ok, what specific error do you get? what is not working?
root@localhost:~/bolt.diy# pnpm run dev
> bolt@0.0.5 dev /root/bolt.diy
> node pre-start.cjs && remix vite:dev
★═══════════════════════════════════════★
B O L T . D I Y
⚡️ Welcome ⚡️
★═══════════════════════════════════════★
📍 Current Version Tag: v"0.0.5"
📍 Current Commit Version: "d62e211"
Please wait until the URL appears here
★═══════════════════════════════════════★
warn Data fetching is changing to a single fetch in React Router v7
┃ You can use the `v3_singleFetch` future flag to opt-in early.
┃ -> https://remix.run/docs/en/2.13.1/start/future-flags#v3_singleFetch
┗
18041 external/com_google_tcmalloc/tcmalloc/system-alloc.cc:771] MmapAligned() failed - unable to allocate with tag (hint=0xf8880000000, size=1073741824, alignment=1073741824) - is something limiting address placement?
18041 external/com_google_tcmalloc/tcmalloc/arena.cc:52] CHECK in Alloc: FATAL ERROR: Out of memory trying to allocate internal tcmalloc data (bytes=131072, object-size=640); is something preventing mmap from succeeding (sandbox, VSS limitations)?
MiniflareCoreError [ERR_RUNTIME_FAILURE]: The Workers runtime failed to start. There is likely additional logging output above.
at Miniflare2.#assembleAndUpdateConfig (/root/bolt.diy/node_modules/.pnpm/miniflare@3.20241106.1/node_modules/miniflare/src/index.ts:1404:10)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Mutex.runWith (/root/bolt.diy/node_modules/.pnpm/miniflare@3.20241106.1/node_modules/miniflare/src/workers/shared/sync.ts:66:45)
at Miniflare2.#waitForReady (/root/bolt.diy/node_modules/.pnpm/miniflare@3.20241106.1/node_modules/miniflare/src/index.ts:1486:3)
at Miniflare2._getProxyClient (/root/bolt.diy/node_modules/.pnpm/miniflare@3.20241106.1/node_modules/miniflare/src/index.ts:1692:3)
at Miniflare2.getBindings (/root/bolt.diy/node_modules/.pnpm/miniflare@3.20241106.1/node_modules/miniflare/src/index.ts:1715:23)
at getPlatformProxy (/root/bolt.diy/node_modules/.pnpm/wrangler@3.91.0_@cloudflare+workers-types@4.20241127.0/node_modules/wrangler/src/api/integrations/platform/index.ts:116:24)
at configureServer (/root/bolt.diy/node_modules/.pnpm/@remix-run+dev@2.15.0_@remix-run+react@2.15.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_typ_3djlhh3t6jbfog2cydlrvgreoy/node_modules/@remix-run/dev/dist/vite/cloudflare-proxy-plugin.js:55:11)
at _createServer (file:///root/bolt.diy/node_modules/.pnpm/vite@5.4.11_@types+node@22.10.1_sass-embedded@1.81.0/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:63080:20)
at configResolved (/root/bolt.diy/node_modules/.pnpm/@remix-run+dev@2.15.0_@remix-run+react@2.15.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_typ_3djlhh3t6jbfog2cydlrvgreoy/node_modules/@remix-run/dev/dist/vite/plugin.js:768:27)
at async Promise.all (index 3)
at resolveConfig (file:///root/bolt.diy/node_modules/.pnpm/vite@5.4.11_@types+node@22.10.1_sass-embedded@1.81.0/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:66404:3)
at _createServer (file:///root/bolt.diy/node_modules/.pnpm/vite@5.4.11_@types+node@22.10.1_sass-embedded@1.81.0/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:62758:18)
at dev (/root/bolt.diy/node_modules/.pnpm/@remix-run+dev@2.15.0_@remix-run+react@2.15.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_typ_3djlhh3t6jbfog2cydlrvgreoy/node_modules/@remix-run/dev/dist/vite/dev.js:39:16)
at Object.viteDev (/root/bolt.diy/node_modules/.pnpm/@remix-run+dev@2.15.0_@remix-run+react@2.15.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_typ_3djlhh3t6jbfog2cydlrvgreoy/node_modules/@remix-run/dev/dist/cli/commands.js:221:3)
at Object.run (/root/bolt.diy/node_modules/.pnpm/@remix-run+dev@2.15.0_@remix-run+react@2.15.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_typ_3djlhh3t6jbfog2cydlrvgreoy/node_modules/@remix-run/dev/dist/cli/run.js:271:7) {
code: 'ERR_RUNTIME_FAILURE',
cause: undefined
}
ELIFECYCLE Command failed with exit code 1.
root@localhost:~/bolt.diy#
Do this command please and provide the output:
termux-info
~ $ termux-info
Termux Variables:
TERMUX_APK_RELEASE=GITHUB
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=1321
TERMUX_IS_DEBUGGABLE_BUILD=1
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.1
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://mirror.quantum5.ca/termux/termux-main stable main
Updatable packages:
apt/stable 2.8.1-1 aarch64 [upgradable from: 2.7.14]
bash/stable 5.2.37 aarch64 [upgradable from: 5.2.26-1]
ca-certificates/stable 1:2024.12.31 all [upgradable from: 1:2024.03.11-2]
command-not-found/stable 2.4.0-59 aarch64 [upgradable from: 2.4.0-29]
coreutils/stable 9.5-3 aarch64 [upgradable from: 9.5]
curl/stable 8.11.1 aarch64 [upgradable from: 8.8.0]
debianutils/stable 5.21 aarch64 [upgradable from: 5.19]
dpkg/stable 1.22.6-1 aarch64 [upgradable from: 1.22.6]
ed/stable 1.21 aarch64 [upgradable from: 1.20.2]
findutils/stable 4.10.0 aarch64 [upgradable from: 4.9.0-2]
gpgv/stable 2.4.5-3 aarch64 [upgradable from: 2.4.5-1]
inetutils/stable 2.5 aarch64 [upgradable from: 2.4-1]
less/stable 668 aarch64 [upgradable from: 633-1]
libandroid-support/stable 29 aarch64 [upgradable from: 28-3]
libassuan/stable 3.0.1-2 aarch64 [upgradable from: 2.5.7]
libc++/stable 27c aarch64 [upgradable from: 26b]
libcurl/stable 8.11.1 aarch64 [upgradable from: 8.8.0]
libgcrypt/stable 1.11.0 aarch64 [upgradable from: 1.10.3]
libgmp/stable 6.3.0-1 aarch64 [upgradable from: 6.3.0]
libgpg-error/stable 1.50 aarch64 [upgradable from: 1.49]
liblz4/stable 1.10.0 aarch64 [upgradable from: 1.9.4]
liblzma/stable 5.6.3 aarch64 [upgradable from: 5.6.2]
libnettle/stable 3.10 aarch64 [upgradable from: 3.9.1]
libnghttp2/stable 1.64.0 aarch64 [upgradable from: 1.62.1]
libnghttp3/stable 1.7.0 aarch64 [upgradable from: 1.3.0]
libsmartcols/stable 2.40.2-2 aarch64 [upgradable from: 2.39.3-4]
libssh2/stable 1.11.1 aarch64 [upgradable from: 1.11.0]
libtirpc/stable 1.3.6 aarch64 [upgradable from: 1.3.4-1]
libunbound/stable 1.22.0 aarch64 [upgradable from: 1.20.0]
libunistring/stable 1.3 aarch64 [upgradable from: 1.1]
lsof/stable 4.99.4 aarch64 [upgradable from: 4.99.3]
nano/stable 8.3 aarch64 [upgradable from: 8.0]
openssl/stable 1:3.3.2 aarch64 [upgradable from: 1:3.2.1-1]
patch/stable 2.7.6-4 aarch64 [upgradable from: 2.7.6-3]
readline/stable 8.2.13 aarch64 [upgradable from: 8.2.10]
termux-am/stable 0.8.0-1 all [upgradable from: 0.8.0]
termux-keyring/stable 3.12-1 all [upgradable from: 3.12]
termux-tools/stable 1.44.6 all [upgradable from: 1.42.4]
util-linux/stable 2.40.2-2 aarch64 [upgradable from: 2.39.3-4]
xxhash/stable 0.8.3 aarch64 [upgradable from: 0.8.2]
xz-utils/stable 5.6.3 aarch64 [upgradable from: 5.6.2]
zstd/stable 1.5.6-2 aarch64 [upgradable from: 1.5.6]
termux-tools version:
1.42.4
Android version:
14
Kernel build information:
Linux localhost 5.10.218-android12-9-00041-g124993efd06e-ab12385094 #1 SMP PREEMPT Mon Sep 16 20:00:18 UTC 2024 aarch64 Android
Device manufacturer:
motorola
Device model:
motorola edge 40 neo
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
Installed termux plugins:
com.termux.x11 versionCode:15
~ $
thx, try these to settings before starting with pnpm run dev:
export NODE_OPTIONS="--max-old-space-size=2048"
export TCMALLOC_DISABLE=1
pnpm run dev
root@localhost:~/bolt.diy# export NODE_OPTIONS=“–max-old-space-size=2048”
root@localhost:~/bolt.diy# export TCMALLOC_DISABLE=1
root@localhost:~/bolt.diy# pnpm run dev
bolt@0.0.5 dev /root/bolt.diy
node pre-start.cjs && remix vite:dev
★═══════════════════════════════════════★
B O L T . D I Y
Welcome
★═══════════════════════════════════════★
Current Version Tag: v"0.0.5"
Current Commit Version: “d62e211”
Please wait until the URL appears here
★═══════════════════════════════════════★
warn Data fetching is changing to a single fetch in React Router v7
┃ You can use the v3_singleFetch
future flag to opt-in early.
┃ → Future Flags (v2.13.1) | Remix
┗
5424 external/com_google_tcmalloc/tcmalloc/system-alloc.cc:771] MmapAligned() failed - unable to allocate with tag (hint=0xd8700000000, size=1073741824, alignment=1073741824) - is something limiting address placement?
5424 external/com_google_tcmalloc/tcmalloc/arena.cc:52] CHECK in Alloc: FATAL ERROR: Out of memory trying to allocate internal tcmalloc data (bytes=131072, object-size=640); is something preventing mmap from succeeding (sandbox, VSS limitations)?
MiniflareCoreError [ERR_RUNTIME_FAILURE]: The Workers runtime failed to start. There is likely additional logging output above.
at Miniflare2.#assembleAndUpdateConfig (/root/bolt.diy/node_modules/.pnpm/miniflare@3.20241106.1/node_modules/miniflare/src/index.ts:1404:10)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Mutex.runWith (/root/bolt.diy/node_modules/.pnpm/miniflare@3.20241106.1/node_modules/miniflare/src/workers/shared/sync.ts:66:45)
at Miniflare2.#waitForReady (/root/bolt.diy/node_modules/.pnpm/miniflare@3.20241106.1/node_modules/miniflare/src/index.ts:1486:3)
at Miniflare2.getProxyClient (/root/bolt.diy/node_modules/.pnpm/miniflare@3.20241106.1/node_modules/miniflare/src/index.ts:1692:3)
at Miniflare2.getBindings (/root/bolt.diy/node_modules/.pnpm/miniflare@3.20241106.1/node_modules/miniflare/src/index.ts:1715:23)
at getPlatformProxy (/root/bolt.diy/node_modules/.pnpm/wrangler@3.91.0@cloudflare+workers-types@4.20241127.0/node_modules/wrangler/src/api/integrations/platform/index.ts:116:24)
at configureServer (/root/bolt.diy/node_modules/.pnpm/@remix-run+dev@2.15.0_@remix-run+react@2.15.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_typ_3djlhh3t6jbfog2cydlrvgreoy/node_modules/@remix-run/dev/dist/vite/cloudflare-proxy-plugin.js:55:11)
at createServer (file:///root/bolt.diy/node_modules/.pnpm/vite@5.4.11@types+node@22.10.1_sass-embedded@1.81.0/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:63080:20)
at configResolved (/root/bolt.diy/node_modules/.pnpm/@remix-run+dev@2.15.0_@remix-run+react@2.15.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_typ_3djlhh3t6jbfog2cydlrvgreoy/node_modules/@remix-run/dev/dist/vite/plugin.js:768:27)
at async Promise.all (index 3)
at resolveConfig (file:///root/bolt.diy/node_modules/.pnpm/vite@5.4.11_@types+node@22.10.1_sass-embedded@1.81.0/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:66404:3)
at createServer (file:///root/bolt.diy/node_modules/.pnpm/vite@5.4.11@types+node@22.10.1_sass-embedded@1.81.0/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:62758:18)
at dev (/root/bolt.diy/node_modules/.pnpm/@remix-run+dev@2.15.0_@remix-run+react@2.15.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_typ_3djlhh3t6jbfog2cydlrvgreoy/node_modules/@remix-run/dev/dist/vite/dev.js:39:16)
at Object.viteDev (/root/bolt.diy/node_modules/.pnpm/@remix-run+dev@2.15.0_@remix-run+react@2.15.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_typ_3djlhh3t6jbfog2cydlrvgreoy/node_modules/@remix-run/dev/dist/cli/commands.js:221:3)
at Object.run (/root/bolt.diy/node_modules/.pnpm/@remix-run+dev@2.15.0_@remix-run+react@2.15.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_typ_3djlhh3t6jbfog2cydlrvgreoy/node_modules/@remix-run/dev/dist/cli/run.js:271:7) {
code: ‘ERR_RUNTIME_FAILURE’,
cause: undefined
}
ELIFECYCLE Command failed with exit code 1.
root@localhost:~/bolt.diy#
Please help me run it
Just saw you also using an older NodeJS version, what could also make problems. Make sure you are on Version 22.
Other then that you can try these variables:
export LD_PRELOAD=""
export TCMALLOC_DISABLE=1
But its just try and error, as I cant this and I think there are also no other people trying to install it on android so far.
If nothing works, I would recommend just deploy it on Cloudflare and use from there.
How to deploy on cloud flair it’s free?
It’s not working my node js version is v22.12.0
ok, then I would recommend trying cloudflare. Its free to deploy yes, but some steps to do, see:
Thank you so much Sir
How to add google key
Google API Key:
Not Set (Please set via UI or ENV_VAR)
What is the variables
On the GitHub .env.example has this
Get your Google Generative AI API Key by following these instructions -
https://console.cloud.google.com/apis/credentials
You only need this environment variable set if you want to use Google Generative AI models
GOOGLE_GENERATIVE_AI_API_KEY=
But this is different i want Gimini
And my site is live and i have added open ai key but it’s giving
There was an error processing your request: An error occurred.
When I’m sending anything
Take a look here where also linked youtube videos from me how to use gemini: Videos / Tutorial / Helpful Content
To be fair, I think I did the same thing the first time. Google’s API platform is a pain, but it’s actually Google AI Studio that you are looking for.
You can also get a GitHub (Azure) API key free for access to ChatGPT 4o, Mistral and others by creating an PAT (Personal Access Token).
And a final note: Anthropic, OpenAI, etc. require you to have a payment method setup with credits available for them to work.
is it running on termux ??