当前位置:网站首页>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
边栏推荐
- 2016. maximum difference between incremental elements
- Understand the difference between reducebykey and groupbykey in spark
- 【测试开发】软件测试基础篇
- MySQL 8.0 enables remote root user access and solves the problem of you are not allowed to create a user with Grant
- 基于华为云物联网设计的浇花神器(STM32+ESP8266)
- MySQL learning summary 9: non empty constraints, uniqueness constraints, primary key, auto_ Increment, foreign key, default, etc
- Simulink code generation: simple state machine and its code
- 【测试开发】自动化测试selenium(三)——unittest框架解析
- [azure data platform] ETL tool (4) - azure data factory debug pipeline
- MySQL auto sort function deny_ rank() over()、rank() over()、row_ Num() over() usage and differences
猜你喜欢
【测试开发】自动化测试selenium篇(一)
Peking University HP financial index - matching enterprise green innovation index 2011-2020: enterprise name, year, industry classification and other multi indicator data
【Web】Cookie 和 Session
【测试开发】博客系统——Loadrunner性能测试(发布博客功能 基准测试)
Panel for measuring innovation efficiency of 31 provinces in China (using Malmquist method)
Summary of the latest rail transit (Subway + bus) stops and routes in key cities in China (II)
MySQL learning summary Xi: detailed explanation of the use of stored procedures and stored functions
[azure data platform] ETL tool (2) -- azure data factory "copy data" tool (cloud copy)
LVS四层负载均衡集群(4)负载均衡的主要方式
[azure data platform] ETL tool (6) -- re understanding azure data factory
随机推荐
[200 opencv routines by youcans] 201 Color space conversion of images
Brief introduction: distributed cap theory and base theory
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
Oracle database management
【面试复习】自用不定时更新
Database object, sequence, view, index
Batch image Download & socket dialogue
P1048 [noip2005 popularization group] Drug collection
19 MySQL database optimization methods
Prefecture level city - air flow coefficient data - updated to 2019 (including 10m wind speed, boundary height, etc.)
[figure data] how long does it take for the equity network to penetrate 1000 layers?
LVS four layer load balancing cluster (4) main methods of load balancing
LVS四层负载均衡集群(6)LVS工作模式
Spark optimization - Troubleshooting
Advanced API review
2000-2019 enterprise registration data of provinces, cities and counties in China (including longitude and latitude, number of registrations and other multi indicator information)
Union, intersection and difference sets of different MySQL databases
LVS four - tier Load Balancing Cluster (5) LVS Overview
Byte stream & buffer stream
Two Chinese vector map data with map review number