当前位置:网站首页>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
边栏推荐
- Different ways of shell scripting
- Smart people's game improvement: Chapter 3, Lesson 2: "Number of Tongtong" (number)
- 线程基础(一)
- APT + Transform 实现多模块应用Application生命周期分发
- Home NAS server (4) | MergerFS and SnapRaid data backup
- Double for loop case (use js jiujiu printing multiplication table)
- 腾讯大咖分享 | 腾讯Alluxio(DOP)在金融场景的落地与优化实践
- 代码编世界 科技创未来
- 深度学习——CNN实现MNIST手写数字的识别
- 25K test old bird's 6-year experience in interviews, four types of companies, four types of questions...
猜你喜欢
随机推荐
网安学习-内网渗透4
node安装和配置(node-v12.20.2-x64 ) 以及node版本切换介绍
51单片机外设篇:ADC
BGP experiment (route reflector, federation, route optimization)
npm 和 yarn的区别
构造方法、成员变量、局部变量
leetcode一步解决链表合并问题
Shuttle + Alluxio 加速内存Shuffle起飞
H5 access payment process - WeChat payment & Alipay payment
C语言操作符详解(2)
zabbix邮件报警和微信报警
Contents of encoding-indexes.js file printed with Bluetooth:
leetcode solves the linked list merge problem in one step
How to perform concurrent calculation (stability test and stress test)?
Redis(十二) - Redis消息队列
APP Bluetooth connection test of test technology
C语言中i++和++i在循环中的差异性
kubernetes affinity, anti-affinity, taint, tolerance
npm、cnpm的安装
Polar Parametrization for Vision-based Surround-View 3D Detection 论文笔记