我是否必须学习 node.js 才能使用 npm? [英] Do I have to learn node.js in order to use npm?

查看:112
本文介绍了我是否必须学习 node.js 才能使用 npm?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在 npm 上使用一个包,所以我正在努力学习如何使用 npm.教程很好,但我觉得他们假设我知道 node.js,而我不知道,而且我很难找到一个 npm 教程,它也不假设我知道 node.js.我需要学习 node.js 才能使用 npm 吗?

I need to use a package on npm, so I'm trying to learn how to use npm. The tutorials are fine, but I feel like they're assuming I know node.js, which I don't, and I'm having a hard time finding a tutorial for npm that doesn't also assume I know node.js. Do I need to learn node.js to use npm?

推荐答案

您无需了解有关 node 的任何信息即可使用 npm,它只是一个包管理器.安装 npm 然后 npm install 所有你想要的包.但是,您需要学习 npm 工具链,这也有助于了解哪些选项是可用于各种命令.

you don't need to know anything about node to use npm, its just a package manager. Install npm and then npm install all the packages you want. You will need to learn the npm toolchain, however, and it also helps to know which options are available for the various commands.

至少你应该知道全局安装包和本地安装包的区别,即 npm install -gnpm install 分别.

At the very least you should know the difference between installing a package globally and installing a package locally, i.e npm install -g vs. npm install respectively.

这篇关于我是否必须学习 node.js 才能使用 npm?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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