Node.js + Socket.io + Windows 7/8? [英] Node.js + Socket.io + Windows 7 / 8?

查看:36
本文介绍了Node.js + Socket.io + Windows 7/8?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我到处寻找,但似乎找不到解决方案.是否可以在 Windows 7 上的 Node.js 上安装 Socket.io?

I've been searching everywhere, but can't seem to find a solution. Is it possible to install Socket.io on Node.js on Windows 7?

如果没有,是否有某种替代方法,或者您知道未来的任何 Windows 支持吗?

If not, is there some sort of alternative, or do you know of any future Windows support?

通常使用 Node.js 包管理器,但是我找不到在 Windows 上安装它的方法.http://npmjs.org/

Usually the Node.js package manager is used, however I can't find a way of installing that on Windows. http://npmjs.org/

我目前正在使用 Node.exe(不是通过 Cygwin 运行它).

I'm currently using Node.exe (not running it through Cygwin).

如果 NPM 工作正常,我想这就是它安装在 Windows 上的方式:

This is how I'd imagine it would be installed on Windows, if NPM worked:

npm install socket.io

Node Package Manager 现在可以在 Windows 7 上运行

只需安装 Node.js 并输入 npm install socket.io 到 Windows 控制台并查看 C:\Users\[insert username]\node_modules.

Node Package Manager now works on Windows 7

Simply install Node.js and type npm install socket.io into the Windows console and look in C:\Users\[insert username]\node_modules.

推荐答案

我确认 npm install socket.io 在 Windows 7 上与 Node.js 0.6.10 完美配合(记得运行cmd 作为管理员).

I am confirming that npm install socket.io works perfectly with Node.js 0.6.10 on Windows 7 (remember to run cmd as Administrator).

这篇关于Node.js + Socket.io + Windows 7/8?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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