当前位置:网站首页>Very simple installation and configuration of nodejs
Very simple installation and configuration of nodejs
2022-06-13 03:42:00 【Hacah】
install NodeJS And configuration
One 、 summary
NodeJs It's a JavaScript Operating environment , be based on V8 engine . send JavaScript It is possible to implement back-end programs .Node.js Use an event driven 、 Non-blocking type I/O Model of , Make it lightweight and efficient .Node.js The software package ecosystem of npm Is the world's largest open source repository ecosystem
Two 、windows install
Node.js Official website download :https://nodejs.org/en/download/

Click the corresponding version to download , After installation , View the version on the console , Confirm that the installation is effective .

Open the installation directory to view ,npm Also installed here .

3、 ... and 、 To configure
Due to the global installation , Will be installed to C Discoid C:\Users\ user name \AppData\Roaming The next path npm and npm_cache Next , To customize the installation path , stay node.js Create two new folders under the installation directory node_global and node_cache.

open cmd, Enter the configuration command
npm config set prefix "D:\Environment\nodejs\node_global"
npm config set cache "D:\Environment\nodejs\node_cache"

You also need to configure environment variables
“ environment variable ” -> “ System variables ”: Create a new variable named “NODE_PATH”, The value is “D:\Environment\nodejs\node_global\node_modules”, Here's the picture :

“ environment variable ” -> “ User variables ”: Edit... In the user variable Path, modify npm The path of (“C:\Users\ user name \AppData\Roaming\npm”) Change it to :“D:\Environment\nodejs\node_global”, as follows :

Four 、 test
perform npm install http-server -g To install a http The server

边栏推荐
- C language programming - input a string arbitrarily from the keyboard, calculate the actual number of characters and print out. It is required that the string processing function strlen() cannot be us
- CDN domain name
- Dish recommendation system based on graph database
- UDP connection map collection
- MySQL learning summary 7: create and manage databases, create tables, modify tables, and delete tables
- [multithreading] what is multithreading in the end -- the elementary level of multithreading (review for self use)
- Spark kernel (execution principle) environment preparation /spark job submission process
- Masa auth - SSO and identity design
- Druid query
- [test development] automatic test selenium (I)
猜你喜欢
![[azure data platform] ETL tool (9) -- ADF performance optimization case sharing (1)](/img/5d/1fc04b4384af07b953c99ec37383b3.jpg)
[azure data platform] ETL tool (9) -- ADF performance optimization case sharing (1)

LVS四層負載均衡集群(5)LVS概述

Carbon neutralization & Patent Innovation: multi indicator data such as patent panels (original documents) of provinces, cities and counties, and the number of low-carbon patents authorized

MapReduce internal execution principle

Environmental pollution, enterprises, highways, fixed assets, foreign investment in all prefecture level cities in China - latest panel data

SQL injection case demonstration and preventive measures

Alibaba cloud keep on record

LVS四层负载均衡集群(4)负载均衡的主要方式
![[azure data platform] ETL tool (2) -- azure data factory](/img/31/3561a3c3f24bce098330218a1d9ded.jpg)
[azure data platform] ETL tool (2) -- azure data factory "copy data" tool (cloud copy)

Spark optimization - Performance (general performance, operator, shuffle, JVM) tuning
随机推荐
Coal industry database - coal price, consumption, power generation & Provincial Civil and industrial power consumption data
Masa auth - overall design from the user's perspective
[figure data] how long does it take for the equity network to penetrate 1000 layers?
(九)详解广播机制
【测试开发】文件压缩项目实战
MySQL learning summary XIII: detailed explanation of if, case, loop, while & cursor of process control
IP address and classification
MySQL learning summary 8: addition, deletion and modification of data processing
【测试开发】进阶篇——各种测试技术分类
测试写入mysql数据300W条,每次1.6-2W之间就断掉然后出现以下问题:
19 MySQL database optimization methods
Azure SQL db/dw series (12) -- using query store (1) -- report Introduction (1)
[azure data platform] ETL tool (2) -- azure data factory "copy data" tool (cloud copy)
Nuggets new oil: financial knowledge map data modeling and actual sharing
Brief introduction: distributed cap theory and base theory
MySQL learning summary 6: data type, integer, floating point number, fixed-point number, text string, binary string
What to bring to 2022
Aggregation analysis of research word association based on graph data
Oracle database management
Two Chinese vector map data with map review number