当前位置:网站首页>The installation of NPM, CNPM
The installation of NPM, CNPM
2022-08-02 06:44:00 【m0_67393413】
- download node.js https://nodejs.org/en/download/

I choose to install on D drive,
2. After the installation is complete, enter the following command on the command line to test whether the installation is successful. The version number will appear correctly. I chose to run as an administrator
npm -v
3. Change the original environment variables
(1) We need to configure the global module of npm firstStorage path and cache path. For example, if I want to put the above two folders in the main directory of NodeJS, I will create two folders "node_global" and "node_cache" under NodeJs, and enter the following commands to change the npm configuration
1 npm config set prefix “D: odejs ode_global”
2 npm config set cache “D: odejs ode_cache”
(2) Add the system variable NODE_PATH
Second, install Taobao npm (cnpm)
1. Install cnpm
(1) Enter the following command
npm install -g cnpm --registry=https://registry.npm.taobao.org
You can see that cnpm is installed in D: odejs ode_global directory
(2) Add the content of the system variable path
(3) Check if it is successful, cnpm -v
Refer to https://blog.csdn.net/zy103118/article/details/117249677 blogger's article
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 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
边栏推荐
- Integrate ssm (1)
- 51 microcontroller peripherals article: dot-matrix LCD
- 路由规划中级篇
- Nacos数据库配置
- Cyber Security Learning - Intranet Penetration 4
- Double for loop case (use js jiujiu printing multiplication table)
- Meta公司新探索 | 利用Alluxio数据缓存降低Presto延迟
- What are the ways to improve software testing capabilities?After reading this article, it will take you up a notch
- BGP+MPLS综合实验
- 深度学习——CNN实现MNIST手写数字的识别
猜你喜欢
随机推荐
路由规划中级篇
What are the ways to improve software testing capabilities?After reading this article, it will take you up a notch
npm、cnpm的安装
51 MCU Peripherals: Infrared Communication
[C language] LeetCode26. Delete duplicates in an ordered array && LeetCode88. Merge two ordered arrays
如何进行并发数计算(稳定性测试和压力测试)?
科技赋能拉萨之“肺”,华为助力拉鲁湿地智慧管理守护绿水青山
代码编世界 科技创未来
DNS的解析流程
Practice on optimizing startup performance of VS Code
How to perform concurrent calculation (stability test and stress test)?
Introduction to coredns
Block elements, inline elements (
elements, span elements)卸载redis
51单片机外设篇:点阵式LCD
【OpenCV从入门到实践】图像处理技术[像素](全网最详细)
Leetcode parentheses matching problem -- 32. The longest parentheses effectively
双重for循环案例(用js打印九九乘法表)
Luogu mini game Daquan (everyone who uses Luogu must know)
金蝶国际:半年亏掉去年一年,疯狂烧钱的商业模式如何持续








