知识来源
如何安装和管理NPM版本
npm is written in Node.js, so you need to install Node.js in order to use npm. You can install npm via the Node.js website, or by installing a Node Version Manager or NVM. This chapter explains both options.
If you just want to get started exploring npm, using the Node.js installation method is fastest. If you are an advanced developer ready to jump in and work with versions, use the node version manager. If you aren’t sure, please read this chapter before you decide. You can always change how you run npm in the future.
NPM是用Node.js编写的,因此您需要安装Node.js才能使用NPM。您可以通过Node.js网站或通过安装NodeVersionManager或NVM来安装NPM。本章解释了这两种选择。
如果您只想开始研究NPM,使用Node.js安装方法是最快的。如果您是高级开发人员,可以跳入版本并使用版本,请使用节点版本管理器。将来,你总是可以改变你运行NPM的方式。