Monday, December 4, 2023
 Popular · Latest · Hot · Upcoming
10
rated 0 times [  15] [ 5]  / answers: 1 / hits: 9084  / 2 Years ago, thu, august 12, 2021, 12:00:00

On a Window 10 Home (on x64 bit), I tried running the following command on a Command Prompt:



node index.js



The error was the following:


C:UserscooldudeasateenOneDriveCodingsilnode_modulesbindingsbindings.js:121
throw e;
^



Error:
?C:UserscooldudeasateenOneDriveCodingsilnode_modulesbetter-sqlite3buildReleasebetter_sqlite3.node
is not a valid Win32 application.
?C:UsershumayOneDriveCodingsilnode_modulesbetter-sqlite3buildReleasebetter_sqlite3.node
at Object.Module._extensions..node (node:internal/modules/cjs/loader:1183:18)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:94:18)
at bindings (C:UserscooldudeasateenOneDriveCodingsilnode_modulesbindingsbindings.js:112:48)
at Object. (C:UserscooldudeasateenOneDriveCodingsilnode_modulesbetter-sqlite3libdatabase.js:9:24)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:94:18)
at Object. (C:UserscooldudeasateenOneDriveCodingsilnode_modulesbetter-sqlite3libindex.js:2:18)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) { code:
'ERR_DLOPEN_FAILED' }



I'm using the following Node version: v16.6.2


More From » node.js

 Answers
10

Now I don't need help, the problem was that I installed x86 instead of x64, which was an honest mistake.


How did I know that I made this mistake?
Well, honestly, I looked at other files of other version of Nodejs, and it ended in x64 instead of x86. Honestly, it was my mistake and I should've looked at them before installing new Nodejs version.


[#1003] Monday, August 2, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
saiget

Total Points: 64
Total Questions: 105
Total Answers: 105

Location: Belarus
Member since Tue, Mar 14, 2023
9 Months ago
saiget questions
Sat, Jun 26, 21, 00:00, 2 Years ago
Sat, Jul 25, 20, 00:00, 3 Years ago
Fri, Jun 26, 20, 00:00, 4 Years ago
Thu, May 14, 20, 00:00, 4 Years ago
Wed, Apr 1, 20, 00:00, 4 Years ago
;