优秀的编程知识分享平台

网站首页 > 技术文章 正文

node环境如何搭建(怎么配置nodejs的环境)

nanyue 2024-07-22 14:18:25 技术文章 51 ℃

1、官网下载nodejs https://nodejs.org/en/download/

Node.js? is a JavaScript runtime built on Chrome's V8 JavaScript engine.


2、下载好之后 一直点enter。

3、windows +r 输入cmd


出现如上版本,即代表安装成功。

4.打开node安装路径


5.创建如两个新文件夹1.node_cache 2.node_global

6.打开cmd

npm config set prefix “C:\Program Files\nodejs\node_global”
npm config set cache “C:\Program Files\nodejs\node_cache”

7.配置环境变量


8.编辑用户变量



9.编辑系统变量



10.node文档

https://nodejs.org/en/docs/

There are several types of documentation available on this website:

  • API reference documentation
  • ES6 features
  • Guides

API reference documentation

The API reference documentation provides detailed information about a function or object in Node.js. This documentation indicates what arguments a method accepts, the return value of that method, and what errors may be related to that method. It also indicates which methods are available for different versions of Node.js.

This documentation describes the built-in modules provided by Node.js. It does not document modules provided by the community.

最近发表
标签列表