当前位置:网站首页>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 ~
边栏推荐
- link preload prefetch
- Basic grammar of interview (Part 2)
- Line by line explanation of yolox source code of anchor free series network (5) -- mosaic data enhancement and mathematical understanding
- 聊聊支付流程的設計與實現邏輯
- [combinatorics] generating function (linear property | product property)
- Life perception 1
- MySQL grouping query
- As soon as we enter "remote", we will never regret, and several people will be happy and several people will be sad| Community essay solicitation
- A. Berland Poker & 1000 [simple mathematical thinking]
- Unsafe类的使用
猜你喜欢
Computer graduation design PHP campus address book telephone number inquiry system
win32:堆破坏的dump文件分析
Redis core technology and practice - learning notes (IX): slicing cluster
Valentine's day, send you a little red flower~
AcWing 271. 杨老师的照相排列【多维DP】
聊聊支付流程的设计与实现逻辑
The number of incremental paths in the grid graph [dfs reverse path + memory dfs]
AcWing 271. Teacher Yang's photographic arrangement [multidimensional DP]
The second largest gay dating website in the world was exposed, and the status of programmers in 2022
Codeforces Round #803 (Div. 2) C. 3SUM Closure
随机推荐
Image 24 bit depth to 8 bit depth
List的stream中Long对象与long判等问题记录
SQL injection -day16
How to install PHP on Ubuntu 20.04
MinGW compile boost library
A. Odd Selection【BruteForce】
[教程]在 CoreOS 上构建你的第一个应用
统计图像中各像素值的数量
MySQL grouping query
[combinatorics] generating function (commutative property | derivative property | integral property)
聊聊支付流程的设计与实现逻辑
Redis core technology and practice - learning notes (IX): slicing cluster
Unsafe类的使用
[combinatorics] generating function (property summary | important generating function)*
[combinatorics] generating function (positive integer splitting | basic model of positive integer splitting | disordered splitting with restrictions)
Lesson 13 of the Blue Bridge Cup -- tree array and line segment tree [exercise]
Keepalived setting does not preempt resources
图像24位深度转8位深度
This diversion
Basic grammar of interview (Part 2)