当前位置:网站首页>Node installation and environment variable configuration
Node installation and environment variable configuration
2022-08-02 06:54:00 【m0_67392811】
The first step
Install the node package address http://nodejs.cn/download/
The installation address is in the node folder under the D drive
Keep next until the end of the installation
Then open command prompt as administrator
Enter the command: node -v
with versionThe prompt indicates that the installation was successful
Step 2
Install environment variables
First create two folders under D: ode
node_cache (cache directory) node_global (global package storage directory)
Open the command prompt and enter two commands
npm config set prefix “D: ode ode_global”
npm config set cache “D: odeode_cache”

Right click on my computer-properties-advanced properties configuration-system properties-environment variables
New in system variables
NODE_PATH D: ode ode_global ode_modules
Add D:ode and %NODE_PATH% to the system variable path
Add D: ode ode_global to the user variable Path
Is it successful to debug environment variables
Reopen the command prompt as administrator
Type npm install -g vue
Below 
it will succeedDownload a vue
and enter
node
require("vue")
The above picture appears to indicate successful configuration
Then configure Taobao mirror
npm install -g cnpm --registry=https://registry.npm.taobao.org
Done!
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
边栏推荐
- 6W+字记录实验全过程 | 探索Alluxio经济化数据存储策略
- A list of 300+ learning resources compiled by senior engineers of the Tao Department (the latest version in 2021)
- Nacos安装详细过程
- Mining game (C language)
- Nacos注册中心的部署与用法详细介绍
- mysql索引失效的常见9种原因详解
- Different ways of shell scripting
- Nacos installation configuration and single-machine deployment tutorial
- go里面的基本知识
- Not annotated parameter overrides @NonNullApi parameter
猜你喜欢
随机推荐
A list of 300+ learning resources compiled by senior engineers of the Tao Department (the latest version in 2021)
制作web3d动态产品展示的优点
Point Density-Aware Voxels for LiDAR 3D Object Detection Paper Notes
nodejs的安装和全局配置(超详细哦)
Mining game (C language)
rhce作业
VMTK环境配置记录
Redis(十一) - 异步优化秒杀
MySql COUNT statistics function explanation
【OpenCV从入门到实践】图像处理技术[像素](全网最详细)
npm、nrm两种方式查看源和切换镜像
深度学习——CNN实现MNIST手写数字的识别
跨桌面端Web容器演进
MySQL高级语句(一)
A detailed introduction to the deployment and usage of the Nacos registry
BGP实验(路由反射器,联邦,路由优化)
Difference between npm and yarn
Polar Parametrization for Vision-based Surround-View 3D Detection 论文笔记
MySQL database video tutorial from beginner to proficient
一文搞懂C操作符









