在 Windows 7 64 位更新 node.js [英] updating node.js in windows 7 64 bit

查看:67
本文介绍了在 Windows 7 64 位更新 node.js的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 Windows 7 64 位操作系统中更新 node.js?

How to update node.js in Windows 7 64-bit OS?

我尝试了著名的:

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

但是在 npm install -g n 中它失败并给出以下错误:

But in npm install -g n it failed giving the following error:

C:\Windows\system32>npm install -g n
npm http GET https://registry.npmjs.org/n
npm http 304 https://registry.npmjs.org/n
npm ERR! notsup Unsupported
npm ERR! notsup Not compatible with your operating system or architecture: n@1.2
.9
npm ERR! notsup Valid OS:    !win32
npm ERR! notsup Valid Arch:  any
npm ERR! notsup Actual OS:   win32
npm ERR! notsup Actual Arch: ia32

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program File
s (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "n"
npm ERR! cwd C:\Windows\system32
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! code EBADPLATFORM
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\Windows\system32\npm-debug.log
npm ERR! not ok code 0

请提出解决方案.我怀疑这可能是因为操作系统的 64 位版本.

Please suggest a solution. I suspect this could be because of the 64-bit version of the OS.

谢谢和问候.

推荐答案

您只需执行 Windows 安装程序即可更新 这里.

You can update simply by executing the Windows installer for the latest node.js version from here.

n 在 Windows 上不起作用,因为它基本上是一个巨人(bash) shell 脚本.

n doesn't work on Windows because it's basically a giant (bash) shell script.

这篇关于在 Windows 7 64 位更新 node.js的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆