question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

sharp.node is not a valid Win32 application

See original GitHub issue

Hi there, I am trying to run sharp on a windows app service running on 64 bit and I am getting the below error. I have then tried running on a 32-bit OS and the error remains. Any ideas of what this can be caused by?

Error: \\?\D:\home\site\wwwroot\node_modules\sharp\build\Release\sharp.node is not a valid Win32 application\\?\D:\home\site\wwwroot\node_modules\sharp\build\Release\sharp.node
    at Object.Module._extensions..node (module.js:672:18)
    at Module.load (module.js:556:32)
    at tryModuleLoad (module.js:499:12)
    at Function.Module._load (module.js:491:3)
    at Module.require (module.js:587:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (D:\home\site\wwwroot\node_modules\sharp\lib\constructor.js:10:15)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)
    at Module.load (module.js:556:32)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
JohannBlakecommented, Aug 24, 2018

I have the same issue. I’m running this on Windows 10 with 64 bit.

2reactions
lovellcommented, Apr 17, 2018

The yarn install command must be run on Windows if the resultant node_modules is to be used on Windows at runtime.

Read more comments on GitHub >

github_iconTop Results From Across the Web

node is not a valid Win32 application - Stack Overflow
The SQLite library you are using is not 'pure JavaScript' and relies on a binary. When you npm install -ed it installed a...
Read more >
binding.node is not a valid win32 application - You.com
I am getting error while installing node modules for my angular 6 project. Binary has a problem: Error: \\?\C:\demo\WA3Projects ...
Read more >
V1.10 on Windows: better_sqlite3.node is not a valid Win32 ...
I'm getting it in an infinite loop when I try to start the app. We encountered a problem with your local email database....
Read more >
How to Fix Exe Not a Valid win32 Application In Windows 10/8 ...
How to Fix Exe Not a Valid win32 Application In Windows 10/8/7 [Tutorial].Corrupt program files, hardware and software incompatibility are ...
Read more >
A brand new website interface for an even better experience!
sharp.node is not a valid Win32 application.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found