当前位置:网站首页>Node installation and environment configuration
Node installation and environment configuration
2022-08-02 06:54:00 【m0_67392811】
NODE installation
①Node download After entering the node official website, choose to download the corresponding version Node.js;
I am windows64 so I downloaded the Windows64 version, the first option is the stable version, which most people will choose to use; the second option is the latest version of the current node update;

2 After downloading the node installation package, install it. Here you select your node installation location. The default is the c drive. You can modify it according to your own ideas; then click Next until the installation is complete.

③ Then you find run or win+r on the computer to open the command box and enter the cmd command to open the command window.


Enter the node -v command to see the version information displayed, and enter npm -v to output the corresponding version information.That proves that you have installed it and can use it.

Environment Configuration
Now your global repository is installed under the c drive, which can be viewed through the npm list -global command; so when you use npm to install the global module, the files under the c drive will be installedfolder, this will make your c drive data huge, so we can modify the default storage address; but if your c drive itself is relatively large and you don't care about the extra data stored, you can ignore this step.
Create two new folders under the folder where you installed node; node_cache (cache folder) node_global (global warehouse folder)

Then enter the command line
npm config set prefix "node_global address"
npm config set cache "address of node_cache"

At this time, your global warehouse address and cache address have been modified;
You can use the command line to install something to test it; for example, if I install webpack globally, you will see a webpack folder under node_global, and any modules you install globally can be placed in this folderturn up.

Next, you need to configure the environment, right-click on my computer-properties-find the advanced property settings, click the advanced tab, there is an environment variable in the lower right corner;


Open the path column of the user variable and change the address of npm to your global repository address


Then edit the system variable, find the path column, and modify the node column to the node_modules folder under the global address


At this point, the installation of node and the configuration of environment variables are over, and then you can use your node to install modules.
Let me introduce myself first. The editor graduated from Shanghai Jiaotong University in 2013. I worked in a small company and went to big factories such as Huawei and OPPO. I joined Alibaba in 2018, until now.I know that most junior and intermediate java engineers want to upgrade their skills, they often need to explore their own growth or sign up to study, but for training institutions, the tuition fee is nearly 10,000 yuan, which is really stressful.Self-learning that is not systematic is very inefficient and lengthy, and it is easy to hit the ceiling and the technology stops.Therefore, I collected a "full set of learning materials for java development" for everyone. The original intention is also very simple. I hope to help friends who want to learn by themselves but don't know where to start, and at the same time reduce everyone's burden.Add the business card below to get a full set of learning materials
边栏推荐
- zabbix email alarm and WeChat alarm
- 关于 VS Code 优化启动性能的实践
- MySQL高级SQL语句
- 股价屡创新低 地产SaaS巨头陷入困境 明源云该如何转型自救?
- Point Density-Aware Voxels for LiDAR 3D Object Detection 论文笔记
- OAuth 授权协议 | 都云原生时代了,我们应该多懂一点OAuth ?
- 从入门到精通的MySQL数据库视频教程
- APT + Transform to realize multi module Application distributed Application life cycle
- BGP+MPLS综合实验
- mysql索引失效的常见9种原因详解
猜你喜欢

Xgboost报错 ValueError: Invalid shape: (1650, 2) for label

金蝶国际:半年亏掉去年一年,疯狂烧钱的商业模式如何持续

目标检测重要概念——IOU、感受野、空洞卷积、mAP

Nodejs安装教程

View source and switch mirrors in two ways: npm and nrm

MySQL驱动jar包的下载--保姆教程

Features and installation of non-relational database MongoDB

物联网如何改变城市运行效率

leetcode一步解决链表合并问题

The advantages of making web3d dynamic product display
随机推荐
Nacos installation configuration and single-machine deployment tutorial
HCIP BGP综合实验 建立对等体、路由反射器、联邦、路由宣告及聚合
Tips for programmers to write PPT
The international top conference OSDI included Taobao system papers for the first time, and the device-cloud collaborative intelligence was recommended by the keynote speech of the conference
npm ---- install yarn
C# 编码规范手册
Different ways of shell scripting
pl/sql之神奇的嵌套与变量生命周期
C语言操作符详解(2)
npm 无法将“npm”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
反向解析dns服务器
线程基础(一)
MySQL高级语句(一)
leetcode-318.最大单词长度乘积
直播系统聊天技术(八):vivo直播系统中IM消息模块的架构实践
BGP+MPLS Comprehensive Experiment
6W+字记录实验全过程 | 探索Alluxio经济化数据存储策略
pytorch基本操作:使用神经网络进行分类任务
MySQL高级SQL语句(二)
引领需求 为HR价值正名——“人力资源领先模型HRLM”成功首发