Closed RaihanStark closed 5 years ago
Hey @RaihanStark , sounds like an issue with the better-sqlite3,
what happens if you
if the output is something like:
> require('better-sqlite3')
{ [Function: Database]
Integer:
{ [Function: Integer]
fromString: [Function: fromString],
fromNumber: [Function: fromNumber],
fromBits: [Function: fromBits],
isInstance: [Function: isInstance],
MAX_VALUE: Integer { high: 2147483647, low: -1 },
MIN_VALUE: Integer { high: -2147483648, low: 0 },
ZERO: Integer { high: 0, low: 0 },
ONE: Integer { high: 0, low: 1 },
NEG_ONE: Integer { high: -1, low: -1 } },
SqliteError: [Function: SqliteError] }
that means the better-sqlite3 is correctly installed if not, you should remove the node_modules folder and try to only install better-sqlite3 in this way:
npm i better-sqlite3
In case the better-sqlite3 is now corretly installed, run npm install
command again
@converge tried the steps above, can't make it work on my environment
npm i better-sqlite3 integer@2.1.0 install /home/pi/instapy-dashboard/node_modules/integer node-gyp rebuild make ✖ ERR Missing Makefile / Bakefile make ℹ info Run "make init" to generate a Makefile. better-sqlite3@5.4.0 install /home/pi/instapy-dashboard/node_modules/better-sqlite3 node-gyp rebuild make ✖ ERR Missing Makefile / Bakefile make ℹ info Run "make init" to generate a Makefile. jss@9.8.7 postinstall /home/pi/instapy-dashboard/node_modules/jss node -e "console.log('\u001b[35m\u001b[1mLove JSS? You can now support us on open collective:\u001b[22m\u001b[39m\n > \u001b[34mhttps://opencollective.com/jss/donate\u001b[0m')" Love JSS? You can now support us on open collective: https://opencollective.com/jss/donate npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) better-sqlite3@5.4.0 added 2074 packages from 843 contributors and audited 36512 packages in 237.123s found 0 vulnerabilities
Opened several issues about this problem, no ideas about how to compile integer and better_sqlite3
yes, better-sqlite3 is really a big issue for this project, fortunately, we have alternatives! I just updated the project and now we dont need better-sqlite3 neither node-sqlite to have it working 🥇
please, let me know if it fixes the issue for you.
I tried install it and then this error(?) came up
**it paused the install until I press CTRL + C and then it says Installation Complete...
but I can't even start the server. Always Error:**
the logs says: