Facing issues while installing the Freshdesk SDK (fdk), it asks to install sqlite3 package manually, upon installing it globally, issue still persists, it still says to install sqlite3 package
node-pre-gyp info This Node instance does not support builds for N-API version 6
node-pre-gyp info This Node instance does not support builds for N-API version 6
/usr/local/lib/node_modules/fdk/node_modules/sequelize/lib/dialects/abstract/connection-manager.js:81
throw new Error(`Please install ${moduleName} package manually`);
^
Error: Please install sqlite3 package manually
at ConnectionManager._loadDialectModule (/usr/local/lib/node_modules/fdk/node_modules/sequelize/lib/dialects/abstract/connection-manager.js:81:15)
at new ConnectionManager (/usr/local/lib/node_modules/fdk/node_modules/sequelize/lib/dialects/sqlite/connection-manager.js:24:21)
at new SqliteDialect (/usr/local/lib/node_modules/fdk/node_modules/sequelize/lib/dialects/sqlite/index.js:15:30)
at new Sequelize (/usr/local/lib/node_modules/fdk/node_modules/sequelize/lib/sequelize.js:340:20)
at Object.<anonymous> (/usr/local/lib/node_modules/fdk/lib/instances/sequelize.js:26:18)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (/usr/local/lib/node_modules/fdk/lib/utils/data-util.js:11:19)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
node version 10.18
OS - ubuntu 20
FDK version - cannot find as running fdk command throws error
fdk is installed by ruuning command npm install https://dl.freshdev.io/cli/fdk.tgz -g
FDK is installed first time so there is no prev version
Are you sure that you are with node 10.18?
I’m asking because it happened to me too.
Then I remembered that I have more than one node installed.
Checked which one was active with:
node -v
and it was the last version. Then I changed to 10.18:
nvm use 10.18
and everything works fine now.
Perhaps you installed FDK in another version.
You have to first set to 10.18, then install the FDK.
I double what Samuel Pares says. Can you please verify whether the FDK is stared and the sqlite3 is also installed with node 10 version. That would be very useful here.
TIA
Hi
There is only one node version in the system that is 10.18.1
I uninstalled fdk, installed sqlite3, installed fdk and then ran coomand npm run build
but still getting same error.
{ Error: Cannot find module '/usr/local/lib/node_modules/fdk/node_modules/sqlite3/lib/binding/napi-v3-linux-x64/node_sqlite3.node'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (/usr/local/lib/node_modules/fdk/node_modules/sqlite3/lib/sqlite3-binding.js:4:15)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (/usr/local/lib/node_modules/fdk/node_modules/sqlite3/lib/sqlite3.js:2:15)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32) code: 'MODULE_NOT_FOUND' }
/usr/local/lib/node_modules/fdk/node_modules/sequelize/lib/dialects/abstract/connection-manager.js:83
throw new Error(`Please install ${moduleName} package manually`);
^
Error: Please install sqlite3 package manually
at ConnectionManager._loadDialectModule (/usr/local/lib/node_modules/fdk/node_modules/sequelize/lib/dialects/abstract/connection-manager.js:83:15)
at new ConnectionManager (/usr/local/lib/node_modules/fdk/node_modules/sequelize/lib/dialects/sqlite/connection-manager.js:24:21)
at new SqliteDialect (/usr/local/lib/node_modules/fdk/node_modules/sequelize/lib/dialects/sqlite/index.js:15:30)
at new Sequelize (/usr/local/lib/node_modules/fdk/node_modules/sequelize/lib/sequelize.js:340:20)
at Object.<anonymous> (/usr/local/lib/node_modules/fdk/lib/instances/sequelize.js:26:18)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (/usr/local/lib/node_modules/fdk/lib/utils/data-util.js:11:19)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
It is unable to find module ‘/usr/local/lib/node_modules/fdk/node_modules/sqlite3/lib/binding/napi-v3-linux-x64/node_sqlite3.node’
@Naved_Ahmad My suggestion would be to completely remove node and nvm from your machine. Including any local path associations. Then go through the process mentioned here for setting up the Freshworks SDK. I have ran into issues where fdk was not a recognized command and found out it was due to another version of node installed and was setting itself as default even after changing my default node version to 10.18. Computer would show 10.18 when I ran node --version . But was actually set to version 12.x.
We did try all the shared steps but still fdk is throwing same error. This is impacting our timeline to migrate freshsales to freshworks crm. can we schedule a meeting? pls share your availability for the meeting