Getting error while checking for npm version post installing Node.js in Windows 10

168 Views Asked by At

Getting the following error while checking for npm version using Windows PowerShell.

Program 'npm.cmd' failed to run: The specified executable is not a valid application for this OS platform.At line:1
char:1
+ npm -v
+ ~~~~~~.
At line:1 char:1
+ npm -v
+ ~~~~~~
    + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedException
    + FullyQualifiedErrorId : NativeCommandFailed

Can someone help me with this?

0

There are 0 best solutions below