当前位置:网站首页>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 ~
边栏推荐
- The second largest gay dating website in the world was exposed, and the status of programmers in 2022
- Sensor 调试流程
- Codeforces Round #803 (Div. 2) C. 3SUM Closure
- Three gradient descent methods and code implementation
- Discussion sur la logique de conception et de mise en oeuvre du processus de paiement
- Research on Swift
- AcWing 271. Teacher Yang's photographic arrangement [multidimensional DP]
- MySQL has been stopped in the configuration interface during installation
- STM32 realizes 74HC595 control
- Self executing function
猜你喜欢

Redis on local access server

微服务组件Sentinel控制台调用

How to deploy applications on kubernetes cluster

Class exercises

PHP MySQL create database

Analysis report on production and marketing demand and investment forecast of China's PVC industry from 2021 to 2026

Computer graduation design PHP makeup sales Beauty shopping mall
![The number of incremental paths in the grid graph [dfs reverse path + memory dfs]](/img/57/ff494db248171253996dd6c9110715.png)
The number of incremental paths in the grid graph [dfs reverse path + memory dfs]

Draw some simple graphics with MFC

基于人脸识别的课堂考勤系统 tkinter+openpyxl+face_recognition
随机推荐
How to expand the capacity of golang slice slice
SDNUOJ1015
Market demand survey and marketing strategy analysis report of global and Chinese pet milk substitutes 2022-2028
Mathematical formula (test)
Redis core technology and practice - learning notes (11): why not just string
一入“远程”终不悔,几人欢喜几人愁。| 社区征文
Micro service component sentinel console call
Supervisor monitors gearman tasks
[combinatorics] generating function (example of generating function | calculating generating function with given general term formula | calculating general term formula with given generating function)
面试官:值为 nil 为什么不等于 nil ?
[linux]centos 7 reports an error when installing MySQL "no package MySQL server available" no package ZABBIX server MySQL available
Computer graduation design PHP sports goods online sales system website
Draw some simple graphics with MFC
Life perception 1
网格图中递增路径的数目[dfs逆向路径+记忆dfs]
解决Zabbix用snmp监控网络流量不准的问题
Image 24 bit depth to 8 bit depth
Keepalived 设置不抢占资源
数学公式(测试)
基于人脸识别的课堂考勤系统 tkinter+openpyxl+face_recognition