Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8535373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:24:57+00:00 2026-06-11T10:24:57+00:00

I have a few applications which use the fantastic node-sqlite3 module. Its one drawback

  • 0

I have a few applications which use the fantastic node-sqlite3 module. Its one drawback is that it builds sqlite from source when it’s installed. This is compounded by the way I do deployment; I’m using chef, which gives me a clean source tree for every deploy. I then do an npm install at each application root. This isn’t a problem for most things since it just hits the local cache. But for sqlite3, it builds a whole new copy for each place the module is referenced; 4 times in my case! What would take seconds now takes minutes, which especially sucks when testing out new changes in a staging environment.

In principle, I should be able to do a build once for a given version of the module, cache it, and just copy or link in the binary on deployment. Has anybody done something similar? Are there demons lurking here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T10:24:58+00:00Added an answer on June 11, 2026 at 10:24 am

    We have a similar setup with Node.js on Chef here and chose to install sqlite3 globally. The Node.js style guide recommends against doing this, but it seems preferable to recompiling sqlite3 for minutes every deploy:

    In chef or your package.json you have something like

    (sudo) npm install -g sqlite3@2.1.x
    

    Ensure that you add the global NODE_PATH into your init script.

    node NODE_PATH=/usr/local/lib/node_modules app.js
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a few applications which use a single Web Service which resides on
I have a few applications written in dbase 3 plus which I use for
We have several ASP.NET applications that use a sitemap which is populated via a
I have a few separate applications which are all launched purely through a main
I have developed a few Delphi Win32 (currently using D2007) applications, which revolve around
I have a few different applications that i need to share code between to
I have a few related applications that I want to deploy to different computers.
I have built a few custom applications that run on WSS 3 using the
I've written a few complex MVC applications which are all role based and use
We have a system which is composed of few applications. Each application at certain

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.