当前位置:网站首页>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 ~
边栏推荐
- Remote office tools sharing | community essay solicitation
- [untitled]
- 圖像24比特深度轉8比特深度
- Valentine's day, send you a little red flower~
- Getting started with deops
- 统计图像中各像素值的数量
- Managing multiple selections with MVVM - managing multiple selections with MVVM
- Unsafe类的使用
- Mature port AI ceaspectus leads the world in the application of AI in terminals, CIMC Feitong advanced products go global, smart terminals, intelligent ports, intelligent terminals
- Lesson 13 of the Blue Bridge Cup -- tree array and line segment tree [exercise]
猜你喜欢

Redis core technology and practice - learning notes (IX): slicing cluster

The vscode code is automatically modified to a compliance code when it is formatted and saved

聊聊支付流程的设计与实现逻辑

Redis core technology and practice - learning notes (VI) how to achieve data consistency between master and slave Libraries

Micro service component sentinel console call

On Data Mining

English grammar_ Noun classification

Talk about the design and implementation logic of payment process

Market demand survey and marketing strategy analysis report of global and Chinese pet milk substitutes 2022-2028

Codeforces Round #803 (Div. 2) C. 3SUM Closure
随机推荐
Research Report on competitive strategy Outlook Analysis and investment strategic planning of China's smart home equipment industry, 2022-2028
Use of unsafe class
Research on Swift
Kotlin's collaboration: Context
Change the single node of Postgres database into master-slave
Global and Chinese health care OEM and ODM market status survey and investment planning recommendations report 2022-2028
A. Odd Selection【BruteForce】
An academic paper sharing and approval system based on PHP for computer graduation design
PHP MySQL preprocessing statement
win32:堆破壞的dump文件分析
Redis core technology and practice - learning notes (VI) how to achieve data consistency between master and slave Libraries
PHP MySQL inserts data
PHP MySQL inserts multiple pieces of data
Self executing function
[combinatorics] generating function (summation property)
PHP MySQL create database
Golang string (string) and byte array ([]byte) are converted to each other
ES6类的继承
Module 9 operation
Talk about the design and implementation logic of payment process