当前位置:网站首页>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 ~
边栏推荐
- [combinatorics] generating function (property summary | important generating function)*
- PHP MySQL inserts data
- PHP MySQL Update
- Redis core technology and practice - learning notes (VI) how to achieve data consistency between master and slave Libraries
- Postfix tips and troubleshooting commands
- English语法_名词 - 分类
- Line by line explanation of yolox source code of anchor free series network (6) -- mixup data enhancement
- Five problems of database operation in commodity supermarket system
- Redis core technology and practice - learning notes (VIII) sentinel cluster: sentinel hung up
- Computer graduation design PHP campus address book telephone number inquiry system
猜你喜欢
Line by line explanation of yolox source code of anchor free series network (5) -- mosaic data enhancement and mathematical understanding
Lesson 13 of the Blue Bridge Cup -- tree array and line segment tree [exercise]
MySQL grouping query
An academic paper sharing and approval system based on PHP for computer graduation design
AcWing 271. Teacher Yang's photographic arrangement [multidimensional DP]
面试官:值为 nil 为什么不等于 nil ?
Prototype inheritance..
The third day of writing C language by Yabo people
[untitled]
模块九作业
随机推荐
Supervisor monitors gearman tasks
分布式的任务分发框架-Gearman
STM32 realizes 74HC595 control
Market demand survey and marketing strategy analysis report of global and Chinese pet milk substitutes 2022-2028
(8) HS corner detection
Three gradient descent methods and code implementation
Kotlin的協程:上下文
win32:堆破坏的dump文件分析
Codeforces Round #803 (Div. 2) C. 3SUM Closure
Ssl/bio of OpenSSL_ get_ fd
Design limitations of structure type (struct)
Computer graduation project PHP library book borrowing management system
[combinatorics] generating function (use generating function to solve the number of solutions of indefinite equation example 2 | extended to integer solution)
Computer graduation design PHP sports goods online sales system website
Redis core technology and practice - learning notes (VI) how to achieve data consistency between master and slave Libraries
PHP MySQL where clause
How do microservices aggregate API documents? This wave of operation is too good
Lesson 13 of the Blue Bridge Cup -- tree array and line segment tree [exercise]
Research Report on market demand and investment planning for the development of China's office chair industry, 2022-2028
Bloom filter [proposed by bloom in 1970; redis cache penetration solution]