在 Windows 10 中安装 Node.js 后检查 npm 版本时出现错误

问题描述 投票:0回答:1

使用 Windows PowerShell 检查

npm
版本时出现以下错误。

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

有人可以帮我吗?

node.js angular npm npm-version
1个回答
0
投票

程序“npm.cmd”无法运行:指定的可执行文件不是此操作系统平台的有效应用程序。第 1 行 字符:1

  • npm -v

行:1 字符:1

  • npm -v
  •   + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedException
      + FullyQualifiedErrorId : NativeCommandFailed
    
    
    

请任何人帮忙......!

© www.soinside.com 2019 - 2024. All rights reserved.