current position:Home>Node under windows JS installation detailed steps tutorial
Node under windows JS installation detailed steps tutorial
2022-04-29 12:47:54【ty_ xiumud】
Node Download and install of
Node.js Official website download :https://nodejs.org/en/download/
All the way fool installation can . After that, you need to make some settings . Be careful Your installation here is generally not in C Disk mounted . If you choose to install C disc , Subsequent operations can also be simplified a lot , But not recommended .
After installation, open the command line tool (Win+r Then output cmd that will do ) Use
node -v
npm -v
It shows your corresponding version , Can verify successful installation
Other configuration
0, Environmental description and preparation
Here the author's installation directory is as follows E:\nodejs
Create two new folders under the installation directory node_global And node_cache
These two folders are used to store the location of your subsequent downloaded packages and the location of cache files .
1, System variable Settings
Set your environment variables
Open the direct search environment variable , Open the can .
In your system environment variables Path add to
E:\nodejs
E:\nodejs\node_modules
Add... To your user variable NODE_PATH
NODE_PATH The address is as follows E:\nodejs\node_modules
User environment variable Path Add
E:\nodejs\node_global
E:\nodejs\node_modules\npm
that will do .
Collection blog , Restart the computer , Make sure your environment is effective .
Place the downloaded package in your installation directory
Set global directory and cache directory , After creating two empty folders , open cmd Command window , Input
npm config set prefix "E:\nodejs\node_global"
npm config set cache "E:\nodejs\node_cache"
Check that the initial configuration has been modified
npm config list
Indicates that the modification has been successful .
verification
Then test and install a package , See if it will be downloaded in the directory you specify ( It's your node_gloal Under the table of contents )
Note that you need to open the command line with the Administrator
npm install webpack -g
Open the following directory , Check whether your package is installed in this directory
E:\nodejs\node_global\node_modules
Source change ( solve npm Slow download problem )
First of all to see npm Download path for npm config get registry
Output is https://registry.npmjs.org/
The explanation is from abroad npm Downloaded from the official website server
Use
npm config set registry "https://registry.npmmirror.com/"
This website is the new Taobao npm The address of the image source , If it fails in the future, you can baidu npm Slow download problem , Find a new mirror website .
See the output below
The source change part refers to
copyright notice
author[ty_ xiumud],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2022/119/202204291120515172.html
The sidebar is recommended
- Construction and development of automatic test platform based on HTTP runner
- Application of RT thread - use RT thread on stm32l051 (v. conclusion of wireless temperature and humidity sensor)
- Expose Dubbo to HTTP service
- Put the front end into the spring cloud project
- Front end learning day 4 - CSS
- Vue URL jump page with parameters
- JavaScript Chapter 13 traversal of arrays and implicit parameters of function methods
- These CSS efficiency improvement skills, you need to know!
- Beijing has opened the pilot of unmanned operation of passenger cars, and the driverless air outlet has arrived
- Test theory series - Test Case elements and design methods Part II
guess what you like
How to make the peak value of measured output voltage not less than 2V
Hexo quickly set up its own blog
Gee synthetic cloudless landsat-8 and sentry-2 data
Prototype object creation method case JavaScript specific implementation steps
YAF CLI and HTTP access modes
Simple HTML + CSS animation web page production DW simple animation web page production
The correct way for web programmers to make a pink girl series happy birthday blessing web page (HTML + CSS + JS)
HTML + CSS + JS to make simple animation web pages
HTML gourmet web page production DW static web page production div + CSS gourmet web page implementation and production
Programmer 520 Tanabata Valentine's Day confession code HTML + JS + CSS petal photo album web page template programmer confession necessary
Random recommended
- Element notify notification prompt text wrap
- Belkin: it's too early to talk about real wireless space charging
- JavaScript ES6 set (set) type* ω *
- Understand JavaScript function execution process and scope chain
- Java project: nursing home management system (java + springboot + thymeleaf + HTML + JS + MySQL)
- Java project: drug management system (java + springboot + HTML + layui + bootstrap + seals + MySQL)
- An error is reported when installing hexo during hexo deployment. What is the reason and how to solve it (tag git | keyword path)
- [front end basics] Linux command: Project Automation deployment
- Less than 100 or win Porsche, Maserati "special supply" 3.0T technical analysis
- Introduction to basic methods of math built-in objects in JavaScript
- CSS matches the nth element of the parent element
- What is the commercialization process of unmanned robotaxi after China allows driverless steering wheel?
- A lot of trouble, cook also worried: a quarter less than $8 billion
- Ajax realizes no refresh paging (no refresh paging shopping cart source code)
- [flutter topic] 101 what is flutter elements Yyds dry goods inventory
- What is the commercialization process of unmanned robotaxi after China allows driverless steering wheel?
- A lot of trouble, cook also worried: a quarter less than $8 billion
- Element acquisition of data structure c language sequence stack
- Set video label based on Vue
- CSS realizes div width adaptation, and the proportion of height and width is fixed
- How to create JavaScript custom events
- Is there any recommendation for wireless signal and wired signal power amplification circuit?
- Introduction to basic methods of math built-in objects in JavaScript
- 1000km pure electric endurance is meaningless? Then why does the car factory still try its best to extend the endurance?
- [let's implement a simple vite!] Chapter 4 - compiling single file components
- 3-11xss htmlspecialchars bypass demo
- How to conduct architecture design 𞓜 deeply reveal Alibaba cloud serverless kubernetes (2)
- Heapdump performance community special series 7: front door opener of large factory -- Application Practice of fluent
- 1、 HTML base tag
- Don't leave the crane unless necessary! A case of novel coronavirus nucleic acid positive was found in Heshan, Guangdong
- [Architect (Part 20)] self defined template of scaffold and summary of phase I
- How does JavaScript understand this algorithm
- [live review] openharmony knowledge empowerment lesson 2, phase 5 - becoming a community talent
- Understand the basic history and knowledge of HTTP
- Influence of lazy loading of Web front-end training on Web Performance
- Guangxi 2021 Guangxi landscape - blessing Lake Changshou Island
- Responsive gulp Chinese network of web front end
- Twaver-html5 basic learning (26) background
- CSS learning notes [3] floating, not separated from document flow, inheritance and stacking
- Webengine loading local html is invalid, and html is the dynamic address generated by JS, which can be solved