当前位置:网站首页>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经济化数据存储策略
- pytorch basic operations: classification tasks using neural networks
- Not annotated parameter overrides @NonNullApi parameter
- HCIP BGP综合实验 建立对等体、路由反射器、联邦、路由宣告及聚合
- zabbix自动发现和自动注册
- go里面的基本知识
- Common functions of pytorch
- 线程基础(一)
- HCIP第十七天
- Not annotated parameter overrides @NonNullApi parameter
猜你喜欢
随机推荐
BGP experiment (route reflector, federation, route optimization)
Deep learning - CNN realizes the recognition of MNIST handwritten digits
VMTK环境配置记录
MySql 5.7.38下载安装教程 ,并实现在Navicat操作MySql
Important concepts of target detection - IOU, receptive field, hole convolution, mAP
Nacos客户端启动出现9848端口错误分析(非版本升级问题)
股价屡创新低 地产SaaS巨头陷入困境 明源云该如何转型自救?
leetcode一步解决链表反转问题
rhce作业
Not annotated parameter overrides @NonNullApi parameter
nacos registry
Difference between npm and yarn
zabbix自动发现和自动注册
MySQL高级学习笔记
Not annotated parameter overrides @NonNullApi parameter
MySQL高级SQL语句
Nodejs安装教程
如何优化OpenSumi终端性能?
淘系资深工程师整理的300+项学习资源清单(2021最新版)
leetcode-318.最大单词长度乘积