Does not work with Windows (32-bit)
See original GitHub issueCannot use the module in windows 32 bit device.
let clipboardy = require('clipboardy');
//With clipboardy
for (let index = 0; index < 5; index++) {
let value = 'test' + index;
clipboardy.writeSync(value);
console.log(clipboardy.readSync());
}
Running above code throws following error
$ node clipboardy_test.js
<...\node_modules\execa\index.js:277>
throw (result.error || new Error(result.stderr === '' ? result.stdout : result.stderr));
^
Error: spawnSync <...\node_modules\clipboardy\fallbacks\windows\copy.exe> UNKNOWN
at exports._errnoException (util.js:1026:11)
at Object.spawnSync (child_process.js:461:20)
at Function.module.exports.sync (<...\node_modules\execa\index.js:274:30>)
at Object.copySync (<...\node_modules\clipboardy\lib\windows.js:12:26>)
at Object.exports.writeSync.input [as writeSync] (<...\node_modules\clipboardy\index.js:38:13>)
at Object.<anonymous> (<...\clipboardy_test.js:6:16>)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
Then on checking the ’ clipboardy \ fallbacks \ windows \ copy.exe’ it seems that it supports only 64 bit.
clipboardy \ fallbacks \ windows \ copy.exe is not compatible with running Windows version. Check the system information of the computer and check whether the version of x86 (32 bit) or x64 (64 bit) of the program is required before contacting the software publisher.
This is expected or am i missing something.
My environment: Node : v6.5.0 Clipboardy: v1.1.4 OS: windows 7 - 32bit
Thanks
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
32-bit and 64-bit Windows: Frequently asked questions
Get answers to some common questions about 32-bit and 64-bit versions of Windows.
Read more >Microsoft stops offering 32-bit Windows 10 to computer ...
This news doesn't mean that Microsoft will no longer support computers running 32-bit Windows 10. Microsoft says that it will continue to ...
Read more >[4 Ways] How to Run 32 Bit Programs on 64 Bit Windows 10/11?
Can't Install 32-bit Program on 64-bit Windows? ... If you fail to install your 32-bit software on your 64-bit system, try the following...
Read more >What's the Difference Between 32-Bit and 64-Bit Windows?
You can't install a 64-bit version of Windows on a 32-bit processor. However, 64-bit Windows is backward compatible with 32-bit software, ...
Read more >How to Install and Run 64 Bit Software on 32 Bit Windows 11 ...
Applies to: Upgrade 32-Bit of OS to 64-Bit so to install and run 64-Bit Programs. As some games or programs may not have...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

FYI - I don’t think the PR detects the OS arch correctly. It uses
process.arch(acts the same asos.arch()), which unfortunately detects the current process’s arch. That means if you have a 64-bit OS, and 32-bit Node.js installed, it will report as 32-bit. The 32-bit EXE still works for me on the 64-bit OS, I just didn’t know how important it was for a 64-bit OS to use the 64-bit EXE (it’s probably ideal, but not required). And trust me, I wouldn’t be in this scenario (64-bit OS with 32-bit Node.js) except it’s required for the project I’m working on. An option I found to get the true OS arch is to use: https://github.com/feross/arch@floatdrop Sure thing! I just wanted to post here first to make sure what I was claiming wasn’t crazy