当前位置:网站首页>Nodejs (01) - introductory tutorial
Nodejs (01) - introductory tutorial
2022-07-03 18:12:00 【Bump】
install
Official website :http://nodejs.cn/download/
Installation tutorial :https://www.runoob.com/nodejs/nodejs-install-setup.html
Concept
Node.js It's based on Chrome V8 Engine Javascript Running environment
npm It is the largest software package warehouse in the world
n->nodejs
p-> package
m-> managers
npm It's with nodejs Installed package manager
upgrade npm To the highest version npm i -g npm
To configure
see npm Dependency package download Storage path npm root -g
Set up npm Dependency package download Storage path :npm config set prefix ' route '
see Bag Resource location :npm config get registry
Solve the problem of slow download , Therefore, it is modified as a domestic site
modify Bag Resource location :npm config set registry Resource path for example :( TaoBao npm:https://registry.npm.taobao.org)
Modify environment variables

The variable value is the dependent package storage path
The scaffold
#-g On behalf of the whole
download
grammar :npm install jquery -g( For example, download jquery)
The following appears to indicate that the download was successful 
uninstall
grammar :npm uninstall jquery -g( For example, uninstall jquery)
The following appears to indicate that the uninstall was successful 
Example
Create a file day1.js
console.log("Hello NodeJs");
Run... On the command line
First cd To day1.js Under the file path of
then
node day1.js

stay VsCode Run in
Download plug-ins CodeRunner
open day1.js Then click the upper right corner to execute 

This is it. nodejs First program of
The end ~
边栏推荐
- Introduction to PHP MySQL
- A. Odd Selection【BruteForce】
- Redis on local access server
- SDNUOJ1015
- 网格图中递增路径的数目[dfs逆向路径+记忆dfs]
- Records of long objects and long judgments in the stream of list
- List的stream中Long对象与long判等问题记录
- What kind of experience is it when the Institute earns 20000 yuan a month?
- Supervisor monitors gearman tasks
- Research Report on competitive strategy Outlook Analysis and investment strategic planning of China's smart home equipment industry, 2022-2028
猜你喜欢

How to draw non overlapping bubble chart in MATLAB

Prototype inheritance..

Research Report on competitive strategy Outlook Analysis and investment strategic planning of China's smart home equipment industry, 2022-2028

Redis core technology and practice - learning notes (VII) sentinel mechanism

Codeforces Round #803 (Div. 2) C. 3SUM Closure

Theoretical description of linear equations and summary of methods for solving linear equations by eigen

Baiwen.com 7 days Internet of things smart home learning experience punch in the next day

An academic paper sharing and approval system based on PHP for computer graduation design

Computer graduation design PHP makeup sales Beauty shopping mall

Market demand survey and marketing strategy analysis report of global and Chinese pet milk substitutes 2022-2028
随机推荐
Classroom attendance system based on face recognition tkinter+openpyxl+face_ recognition
Golang string (string) and byte array ([]byte) are converted to each other
A. Odd Selection【BruteForce】
Life perception 1
PHP returns 500 errors but no error log - PHP return 500 error but no error log
SQL injection -day16
Graduation summary
数学公式(测试)
PHP MySQL inserts multiple pieces of data
Codeforces Round #803 (Div. 2) C. 3SUM Closure
win32:堆破壞的dump文件分析
模块九作业
[combinatorics] generating function (linear property | product property)
Introduction to PHP MySQL
Kotlin的协程:上下文
English语法_形容词/副词3级 - 倍数表达
Computer graduation project PHP library book borrowing management system
Computer graduation design PHP sports goods online sales system website
Redis core technology and practice - learning notes (11): why not just string
[Yu Yue education] family education SPOC class 2 reference materials of Shanghai Normal University