0

I am trying to set up my new PC dev environment to match it predecessor, but when I run NPM install I get the following error

Unsupported platform for node-win-x86@12.22.1: wanted {"os":"win32","arch":"x86"} (current: {"os":"win32","arch":"ia32"})

does this suggest that my hardware is inompatible with some node module?

I am unfamiliar with ia32 and I dont see any option in node installer to install for this particular architecture

Kevin Bradshaw
  • 6,327
  • 13
  • 55
  • 78
  • "ia32" is a synonym for 32-bit x86. Sounds like two pieces of software disagree about naming for what's actually the same thing. :( See [The most correct way to refer to 32-bit and 64-bit versions of programs](https://stackoverflow.com/q/53364320). (In the Windows world, "x86" usually means specifically 32-bit x86, as opposed to the "x64" term they invented.) – Peter Cordes May 16 '21 at 16:30
  • Assuming you're running Windows on a modern 64-bit processor, It's hard to tell from this info, but I would guess that you're running the 32-bit version of NPM or nodejs and you should have installed the 64-bit version. – jfriend00 May 16 '21 at 16:39
  • @jfriend00 that was exactly the issue. I inadvertently installed the 32 bit node version. Please create an answer so that I can select as the solution. Thanks. – Kevin Bradshaw May 16 '21 at 16:58
  • @KevinBradshaw - Answer below. – jfriend00 May 16 '21 at 17:22

1 Answers1

1

Assuming you're running Windows on a modern 64-bit processor, it appears that you're running the 32-bit version of NPM or nodejs and you should have installed the 64-bit version.

jfriend00
  • 683,504
  • 96
  • 985
  • 979