The 2023 latest version of Node.js download and installation and environment configuration tutorial (very detailed) from zero basics to proficiency, it is enough to read this article

1. Enter the official website address to download the installation package

https://nodejs.org/zh-cn/download/

Select the Node.js version corresponding to your system, here I choose Windows system, 64-bit

Tips: If you want to download a specified version, click [Previous Versions] to choose the version you want to download

2. Installer

(1) After the download is complete, double-click the installation package to start installing Node.js

(2) Click the [Next] button directly, here you can modify the installation path according to your personal needs, and continue to click the [Next] button after the modification

(3) It can be done according to your own needs. Here I choose the default installation, and continue to click the [Next] button

(4) Not selected, click the [Next] button directly

(5) Click the [Install] button to install

(6) After the installation is complete, click the [Finish] button

(7) To test whether the installation is successful, press the [win+R] key, enter cmd, and open the cmd window

 输入:node -v     // 显示node.js版本

            npm -v      // 显示npm版本

–Successfully display release notes Installed successfully

3. Environment configuration

(1) Find the installation directory, and create two new folders [node_global] and [node_cache] under the installation directory

(2) After the creation is complete, open the cmd command window as an administrator (see Tips below for the opening method), and enter

①npm config set prefix "your path\node_global" (copy the "node_global" folder path you just created)

npm config set prefix "D:\develop\Node.js\node_global"

②npm config set cache "your path\node_cache" (copy the "node_cache" folder path you just created)

npm config set cache "D:\develop\Node.js\node_cache"

Tips: How to run cmd as an administrator: Click the [Start] menu in the lower left corner, enter "command prompt" in the search area, and then click [Run as administrator]

=Or click the right mouse button and select [Run as administrator]============

(3) Configure environment variables

①【This Computer】-Right click-【Properties】-【Advanced System Settings】-【Environment Variables】

② Click [New] in [System Variables]

Variable name: NODE_PATH

Variable value: C:\Program Files\nodejs\node_global\node_modules

Then you will find a [node_modules] folder in [node_global]

Tips: If the [node_modules] folder is not automatically created after entering the variable value, manually create a [node_modules] folder under [node_global], and then copy the path address of the [node_modules] folder you created to the variable value

③ Edit [Path] in [User Variables]

④ Change the default [ ] under the C drive AppData\Roaming\npmto [ ] node_global】的路径, and click OK

⑤ Select [Path] in [System Variables], click [Edit] to add [NODE_PATH], and then keep clicking [OK]

4. Test

After the configuration is complete, install one of the most commonly used express modules globally for testing

npm install express -g   // -g代表全局安装

When the following interface appears, the configuration is successful

Tips: If the installation fails, it may be that you did not run the cmd window as an administrator, or you can modify the permissions of [node_global] and [node_cache]

Steps: Right-click the [node_global] folder, click [Properties], then click [Security], then click [Edit], check all permissions, and then click [OK], and the steps for [node_cache] are the same.

5. Install Taobao mirror image

①Install Taobao mirror image

npm config set registry https://registry.npm.taobao.org

Check for success:

npm config get registry

②Install cnpm (on-demand installation)

Description: npm is the official package manager of node. cnpm is a Chinese version of npm, a custom cnpm (gzip compression support) command-line tool from Taobao instead of the default npm.

npm install -g cnpm --registry=https://registry.npmmirror.com

Check if the installation is successful

Command: cnpm -v

Additional: If there is a problem, the friends can check whether there is any error in their configuration

①Open cmd and type the following command to check

② Open the environment variable configuration check

③Open the installation directory and check whether there are the following folders

**····** Check whether there is a folder named [node_modules] in [node_global]

**····**The cnpm and express installed above will appear in the [node_modules] folder under [node_global]

**题外话**

=========

Many people who are new to the computer industry or graduates of computer-related majors have encountered obstacles everywhere due to lack of practical experience. Let's look at two sets of data:

  • The 2023 national college graduates are expected to reach 11.58 million, and the employment situation is severe;

  • According to the data released by the National Network Security Publicity Week, by 2027, the shortage of network security personnel in my country will reach 3.27 million.

    On the one hand, the employment situation of fresh graduates is severe every year, and on the other hand, there is a gap of one million cyber security talents.

On June 9, the 2023 edition of the Employment Blue Book of MyCOS Research (including the 2023 Employment Report for Undergraduates in China and the Employment Report for Higher Vocational Students in China in 2023) was officially released.

Top 10 Majors with Higher Monthly Salary for 2022 College Graduates

The monthly income of undergraduate computer science majors and higher vocational automation majors is relatively high. The monthly income of the 2022 class of undergraduate computer science and higher vocational automation majors is 6,863 yuan and 5,339 yuan, respectively. Among them, the starting salary of undergraduate computer majors is basically the same as that of the 2021 class, and the monthly income of higher vocational automation majors has increased significantly. The 2022 class of overtaking railway transportation majors (5295 yuan) ranks first.

Specifically, depending on the major, the major with a higher monthly income for undergraduates in 2022 is information security (7579 yuan). Compared with the class of 2018, undergraduate majors related to artificial intelligence, such as electronic science and technology, automation, performed well, and their starting salaries increased by 19% compared with five years ago. Although data science and big data technology are newly added majors in recent years, they have performed well, and have ranked among the top three majors with higher monthly income half a year after graduation for the 2022 class of undergraduates. The only humanities and social science major that entered the top 10 undergraduate high-paying list five years ago-French has dropped out of the top 10.

"There is no national security without cybersecurity". At present, network security has been elevated to the height of national strategy and has become one of the most important factors affecting national security and social stability.

Characteristics of the network security industry

1. The employment salary is very high, and the salary rises quickly. In 2021, Liepin.com released the highest employment salary in the network security industry, which is 337,700 yuan per capita!

2. There is a large talent gap and many employment opportunities

On September 18, 2019, the official website of the "Central People's Government of the People's Republic of China" published: my country needs 1.4 million cyberspace security talents, but schools across the country train less than 1.5 million people each year. Liepin.com's "Cyber ​​Security Report for the First Half of 2021" predicts that the demand for cyber security talents will be 3 million in 2027, and there are only 100,000 employees currently engaged in the cyber security industry.

The industry has a lot of room for development and many jobs

Since the establishment of the network security industry, dozens of new network security industry positions have been added: network security experts, network security analysts, security consultants, network security engineers, security architects, security operation and maintenance engineers, penetration engineers, information security management Data Security Engineer, Network Security Operations Engineer, Network Security Emergency Response Engineer, Data Appraiser, Network Security Product Manager, Network Security Service Engineer, Network Security Trainer, Network Security Auditor, Threat Intelligence Analysis Engineer, Disaster Recovery Professional , Actual combat offensive and defensive professionals...

Great career potential

The network security major has strong technical characteristics, especially mastering the core network architecture and security technology in the work, which has an irreplaceable competitive advantage in career development.

With the continuous improvement of personal ability, the professional value of the work will also increase with the enrichment of one's own experience and the maturity of project operation, and the appreciation space is bullish all the way, which is the main reason why it is popular with everyone.

To some extent, in the field of network security, just like the doctor profession, the older you are, the more popular you become. Because the technology becomes more mature, the work will naturally be valued, and promotion and salary increase are a matter of course.

How to Learn Hacking & Cyber ​​Security

Today, as long as you give my article a thumbs-up, I will share my private collection of online security learning materials with you for free, so let’s see what is there.

1. Learning Roadmap

There are also many things to learn in attack and defense. I have written all the specific things to learn in the roadmap above. If you can learn them, you will have no problem getting a job or taking private jobs.

2. Video Tutorial

Although there are many learning resources on the Internet, they are basically incomplete. This is a video tutorial on cyber security recorded by myself. I have a supporting video explanation for every knowledge point in the above roadmap.

The content covers the study of network security law, network security operation and other guarantee assessment, penetration testing basics, detailed explanation of vulnerabilities, basic computer knowledge, etc., which are all learning contents that must be known when getting started with network security.

(It’s all packed into one piece and cannot be unfolded one by one. There are more than 300 episodes in total)

Due to limited space, only part of the information is shown, you need to click the link below to get it

CSDN spree: "Hacker & Network Security Introduction & Advanced Learning Resource Pack" free sharing

3. Technical documents and e-books

The technical documents are also compiled by myself, including my experience and technical points of participating in large-scale network security operations, CTF and SRC vulnerability mining. There are also more than 200 e-books. Due to the sensitivity of the content, I will not show them one by one.

Due to limited space, only part of the information is shown, you need to click the link below to get it

CSDN spree: "Hacker & Network Security Introduction & Advanced Learning Resource Pack" free sharing

4. Toolkit, interview questions and source code

"If you want to do a good job, you must first sharpen your tools." I have summarized dozens of the most popular hacking tools for everyone. The scope of coverage mainly focuses on information collection, Android hacking tools, automation tools, phishing, etc. Interested students should not miss it.

There is also the source code of the case and the corresponding toolkit mentioned in my video, which can be taken away if needed.

Due to limited space, only part of the information is shown, you need to click the link below to get it

CSDN spree: "Hacker & Network Security Introduction & Advanced Learning Resource Pack" free sharing

Finally, there are interview questions about Internet security that I have sorted out in the past few years. If you are looking for a job in Internet security, they will definitely help you a lot.

These questions are often encountered in interviews with Sangfor, Qi Anxin, Tencent or other major companies. If you have good questions or good insights, please share them.

Reference analysis: Sangfor official website, Qi Anxin official website, Freebuf, csdn, etc.

Content features: clear organization, including graphic representation, which is easier to understand.

Summary of content: Including intranet, operating system, protocol, penetration test, security service, vulnerability, injection, XSS, CSRF, SSRF, file upload, file download, file inclusion, XXE, logic vulnerability, tool, SQLmap, NMAP, BP, MSF…

Due to limited space, only part of the information is shown, you need to click the link below to get it

CSDN spree: "Hacker & Network Security Introduction & Advanced Learning Resource Pack" free sharing

Guess you like

Origin blog.csdn.net/Python_0011/article/details/132109189