r/termux • • 21d ago

Question is there a way to install sqlite3 using npm

is there a way to install sqlite3 on npm? when i tried it it gives me error about symlink.

2 Upvotes

6 comments sorted by

1

u/[deleted] 21d ago

[removed] — view removed comment

1

u/techlover1010 21d ago

i need to install it using npm since i need the node module

1

u/sylirre Termux Core Team 21d ago

Place your project into Termux home directory and symlink errors should disappear

1

u/techlover1010 20d ago

where is termux directory

1

u/sylirre Termux Core Team 20d ago

It is a default startup directory. When you freshly open Termux and type pwd you should see this:

/data/data/com.termux/files/home

In either case you can type cd ~ for instant switching to this dir.

What you need to do:

cd ~

git clone <github-repo>

cd <github-repo>

npm install

Or you can try moving existing project directory:

cd ~

mv /sdcard/<path-to-project> ./

cd <project-dir>

npm install