当前位置:网站首页>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 ~
边栏推荐
- Design limitations of structure type (struct)
- How do microservices aggregate API documents? This wave of operation is too good
- Golang string (string) and byte array ([]byte) are converted to each other
- Life perception 1
- Prototype inheritance..
- Unsafe类的使用
- The number of incremental paths in the grid graph [dfs reverse path + memory dfs]
- PHP MySQL inserts data
- Win32: dump file analysis of heap corruption
- On Data Mining
猜你喜欢

Classroom attendance system based on face recognition tkinter+openpyxl+face_ recognition

PHP MySQL inserts data

Computer graduation project PHP library book borrowing management system

How do microservices aggregate API documents? This wave of operation is too good

Line by line explanation of yolox source code of anchor free series network (5) -- mosaic data enhancement and mathematical understanding

Getting started with deops

Sensor 调试流程

MySQL grouping query

How to install PHP on Ubuntu 20.04

Win32: dump file analysis of heap corruption
随机推荐
Mathematical formula (test)
MySQL grouping query
小程序 多tab 多swiper + 每个tab分页
[enumeration] annoying frogs always step on my rice fields: (who is the most hateful? (POJ hundred practice 2812)
Micro service component sentinel console call
Five problems of database operation in commodity supermarket system
Win32: analyse du fichier dump pour la défaillance du tas
A. Odd Selection【BruteForce】
win32:堆破壞的dump文件分析
Computer graduation design PHP makeup sales Beauty shopping mall
Image 24 bit depth to 8 bit depth
OpenSSL的SSL/BIO_get_fd
Win32: dump file analysis of heap corruption
WebView module manages the application window interface to realize the logical control and management operation of multiple windows (Part 1)
聊聊支付流程的设计与实现逻辑
Ssl/bio of OpenSSL_ get_ fd
Getting started with deops
Global and Chinese pediatric palliative care drug market development research and investment planning recommendations report 2022-2028
MinGW compile boost library
Life perception 1