node.js - Sqlite module installs properly on Azure Web App during deploy, but uses different version of module at runtime. -


i attempting sqlite database in node app hosted on azure websites.

i've listed sqlite3 in dependencies field of package.json:

"sqlite3": "^3.0.8"

when deploy, see following during install:

remote: [sqlite3] success: "d:\home\site\wwwroot\node_modules\sqlite3\lib\binding\node-v11-win32-ia32\node_sqlite3.node" installed via remote

however, every request returns 500 error, checked out app log.

when @ application log, see following error each deploy:

mon jun 29 2015 17:13:51 gmt+0000 (coordinated universal time): unaught exception: error: cannot find module 'd:\home\site\wwwroot\node_modules\sqlite3\lib\binding\node-v14-win32-ia32\node_sqlite3.node

if notice, when running application looks node_modules\sqlite3\lib\binding\node-v14-win32-ia32\node_sqlite3.node installed node_modules\sqlite3\lib\binding\node-v11-win32-ia32\node_sqlite3.node. don't understand enough servers in general, or node's environment figure out how pointed right location or other version installed. appears though azure has 1 machine building code , machine running code, have different specs.

try set node js version 0.12.0. can done azure portal following steps:

  1. select website
  2. select "settings" , "application settings"
  3. then under "app settings" change value of "website_node_default_version" "0.12.0"

Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -