npm对socket.io/安装东西意味着什么? [英] What does npm mean for socket.io/installing stuff?

查看:71
本文介绍了npm对socket.io/安装东西意味着什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真是个菜鸟.我刚刚开始在node.js/socket.io/html5之类的东西上开始摸索.我终于弄清楚了如何使用命令提示符(使用Windows)通过命令"node example.js"启动"hello world"应用程序.但是npm是什么意思?当我查看socket.io时,它说要安装,npm install socket.io这是否意味着我需要将所有文件提取到我的nodejs文件夹中?

I'm a real noob at this. I've just began scratching the surface on node.js/socket.io/html5 and stuff. I finally figured out how to use my command prompt (using windows) to launch a "hello world" application with the command "node example.js." But what does npm mean? When I'm looking at socket.io it says to install, npm install socket.io Does that mean I need to extract all the files into my nodejs folder?

我很困惑.

推荐答案

npm是用于管理node.js库的命令行界面程序(它代表节点包管理器-至少查看文档,它很棒而且令人惊奇.如前所述,只需在命令提示符下键入npm install,然后在本地节点模块中包含该库.

npm is a command line interface program to manage node.js libraries (it stands for node package manager - at least it did initially, they since turned this into a bit of a running gag - thanks to @spex in the comments for that link). Check out the docs, it is awesome and amazing. As you mentioned, just type npm install in a command prompt, and voilà, you have the library in your local node modules.

这篇关于npm对socket.io/安装东西意味着什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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