当前位置:网站首页>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
边栏推荐
猜你喜欢

Nacos installation configuration and single-machine deployment tutorial

深度学习——CNN实现MNIST手写数字的识别

Machine learning -- - theory of support vector machine (SVM)

Nacos客户端启动出现9848端口错误分析(非版本升级问题)

Analysis of port 9848 error at startup of Nacos client (non-version upgrade problem)

leetcode一步解决链表合并问题

MySQL高级SQL语句(二)

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

pytorch basic operations: classification tasks using neural networks

路由规划中级篇
随机推荐
科技赋能拉萨之“肺”,华为助力拉鲁湿地智慧管理守护绿水青山
How to install the specified version package with NPM and view the version number
回文串求解的进阶方法
npm 和 yarn的区别
触发器简单解释
leetcode括号匹配问题——32.最长有效括号
国际顶会OSDI首度收录淘宝系统论文,端云协同智能获大会主旨演讲推荐
npm does not recognize the "npm" item as the name of a cmdlet, function, script file, or runnable program.Please check the spelling of the name, and if the path is included, make sure the path is corr
HCIP BGP Comprehensive Experiment Establishing peers, route reflectors, federation, route announcement and aggregation
C语言操作符详解(2)
A list of 300+ learning resources compiled by senior engineers of the Tao Department (the latest version in 2021)
程序员最重要的能力是什么?
分布式文件存储服务器之Minio对象存储技术参考指南
如何优化OpenSumi终端性能?
引领需求 为HR价值正名——“人力资源领先模型HRLM”成功首发
Redis(十一) - 异步优化秒杀
zabbix auto-discovery and auto-registration
Not annotated parameter overrides @NonNullApi parameter
Common functions of pytorch
Nacos注册中心的部署与用法详细介绍