Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQLite driver with custome node runtime not using globally installed sqlite3 package #1391

Open
jlynchMicron opened this issue Oct 21, 2024 · 0 comments
Labels

Comments

@jlynchMicron
Copy link

Describe the bug
I am on a company system without root permissions to run VScode, so all custom software package installs usually have to run out of my user directory. I have user level version of nodejs, npm, and node-sqlite3 installed in my user folder, but the SQLite driver seems to not recognize my sqlite3 package and tries to install sqlite3 via my system default npm which I dont have permission to use. How do I get the SQLite driver it recognize my user level version of npm that has a globally installed version of sqlite3?

I verified that the SQLTools log is using my specified nodejs executable and show it at "v20.9.0", but it just cant seem to find the npm package.

IMPORTANT NOTE:
I installed nodejs and npm with the conda package manager which changes linux env variables depending on which conda env is active. When running the SQLtools extension, I DO NOT have my nodejs conda env active, thus if SQLtools scans npm, it will probably be scanning my system level npm and not my user level npm. If that is the case, is there a way to hardcode the sqlite3 package path for this extension?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant