Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

449
Views
argon2.node is not a valid Win32 application

I developed my NestJS application on my local MacBook Air M1. I built the app and copied the built files and folders + node_modules to the production server which is running Windows Server 2019 Standard. The production server does not have internet access for installing modules using for example yarn install command. When I try to run the application I get the following error:

C:\myproject\api>node main.js
internal/modules/cjs/loader.js:1122
  return process.dlopen(module, path.toNamespacedPath(filename));
             ^

Error: \\?\C:\myproject\api\node_modules\argon2\lib\binding\napi-v3\argon2.node ist keine zulässige Win32-Anwendung.
\\?\C:\myproject\api\node_modules\argon2\lib\binding\napi-v3\argon2.node
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:1122:18)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (C:\myproject\api\node_modules\argon2\argon2.js:12:5)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (C:\tubs\api\main.js:7444:18)
    at __webpack_require__ (C:\tubs\api\main.js:20:30)
    at Object.<anonymous> (C:\tubs\api\main.js:7355:16)
    at __webpack_require__ (C:\tubs\api\main.js:20:30)

I have "argon2": "^0.28.5" in my package.json file for password encryption. I googled a lot but didn't see any similar issue.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

just downgrade argon2 to older version, such as 0.28.4

almost 4 years ago · Huu An Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!