【问题标题】:when updating nodeJs gives "ERR! Windows_NT 6.3.9600" error更新 nodeJs 时出现“ERR!Windows_NT 6.3.9600”错误
【发布时间】:2015-10-22 13:40:30
【问题描述】:

我正在尝试使用以下命令更新我的节点

npm cache clean -f
npm install -g n
n stable

运行第二个命令时出现以下错误

npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "n"
npm ERR! node v0.12.0
npm ERR! npm  v2.5.1
npm ERR! code EBADPLATFORM

npm ERR! notsup Unsupported
npm ERR! notsup Not compatible with your operating system or architecture: n@2.0.2
npm ERR! notsup Valid OS:    !win32
npm ERR! notsup Valid Arch:  any
npm ERR! notsup Actual OS:   win32
npm ERR! notsup Actual Arch: x64

【问题讨论】:

    标签: node.js


    【解决方案1】:

    根据模块ndocumentation

    注意:目前不适用于 Windows。拉取请求表示赞赏。

    所以,他们目前不支持 Windows 操作系统。当您尝试在您的机器上安装时,该模块也会报告相同的问题。请参阅您的错误堆栈跟踪。我将相关的错误堆栈跟踪概述如下,供您参考:

    npm ERR! notsup Unsupported
    npm ERR! notsup Not compatible with your operating system or architecture: n@2.0.2
    npm ERR! notsup Valid OS:    !win32
    npm ERR! notsup Valid Arch:  any
    npm ERR! notsup Actual OS:   win32
    npm ERR! notsup Actual Arch: x64
    

    请从here 安装适用于 Windows 的最新节点可执行文件。这应该可以帮助您升级系统上的节点。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-04-03
      • 1970-01-01
      • 2017-03-07
      • 2017-03-20
      • 1970-01-01
      • 2016-05-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多