cocos learning-2020 / 4/17

NODE.JS

chrome V8: Google developed js interpreter
NODE.JS: v8 software-based high-performance features developed by js for the back end of the write
bottom is written with c

node.js Chinese official website

Node.js is a JavaScript runtime based on Chrome V8 engine.

Official explanation

The origin of NODE.JS

The earliest founder of NODE.JS wrote a libuv library with c
libuv: asynchronous file reading and writing, asynchronous network IO cross-platform library

Later, the founder integrated the V8 library into it, and made the JS binding of the V8 and C libraries.
Later, many server modules were developed on this

Elevation:
Insert picture description here

When installing a third-party module, it is installed under AppData by default.
If you need to install it, you need to configure the environment variable "NODE_PATH"
"NODE_PATH" is to specify the path to search for third-party modules

AppData: used for reading and writing applications in the Windows system, making temporary files
cygwin: Linux-like client under windows

(Cygwin is really difficult)

To use node.js in cygwin, you must first enter the folder where the file is located,
and then write
node 文件名.js
Insert picture description here

Insert picture description here
Tab can help to automatically complete
the abbreviation of ls: list
Create a folder:
mkdir Folder
abbreviation of mkdir: makedir
rm: remove abbreviation
rm can not directly delete the folder
Delete folder instruction: rm -rf The name of the folder has been
tested Cannot delete the current folder in the folder, you must return to the previous menu
clear: clear the screen
find ./(path) -name "name of your search"
part of the match can be used *.
Insert picture description here
/ Current path
... / upper level

Published 9 original articles · praised 1 · visit 80

Guess you like

Origin blog.csdn.net/weixin_43968392/article/details/105579656