当前位置:网站首页>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
边栏推荐
- Redis-cluster mode (master-slave replication mode, sentinel mode, clustering mode)
- Contents of encoding-indexes.js file printed with Bluetooth:
- 使用jOOQ 3.14合成外键在视图上写隐式连接
- APT + Transform 实现多模块应用Application生命周期分发
- 字节面试题:如何保证缓存和数据库的一致性
- 51 MCU peripherals: DS18B20
- APP Bluetooth connection test of test technology
- Block elements, inline elements (elements, span elements)
- 【解决】RESP.app 连接不上redis
- C竞赛训练
猜你喜欢
Node的安装与环境变量的配置
Redis(十一) - 异步优化秒杀
【合集- 行业解决方案】如何搭建高性能的数据加速与数据编排平台
leetcode一步解决链表反转问题
MySQL数据表的基本操作和基于 MySQL数据表的基本操作的综合实例项目
腾讯大咖分享 | 腾讯Alluxio(DOP)在金融场景的落地与优化实践
Important concepts of target detection - IOU, receptive field, hole convolution, mAP
leetcode solves the linked list merge problem in one step
无代码生产新模式探索
pl/sql之神奇的嵌套与变量生命周期
随机推荐
Install and use Google Chrome
国际顶会OSDI首度收录淘宝系统论文,端云协同智能获大会主旨演讲推荐
flex布局(弹性布局)
C竞赛训练
PIL与numpy格式之间的转换
There are more and more talents in software testing. Why are people still reluctant to take the road of software testing?
回文串求解的进阶方法
Detailed explanation of interface in Go language
Shell 脚本不同玩法
Redis(十二) - Redis消息队列
leetcode solves the linked list merge problem in one step
国际顶会OSDI首度收录淘宝系统论文,端云协同智能获大会主旨演讲推荐
【OpenCV从入门到实践】图像处理技术[像素](全网最详细)
程序员最重要的能力是什么?
蚂蚁三面:MQ 消息丢失、重复、积压问题,有哪些解决方案?
Node的安装与环境变量的配置
Automated operation and maintenance tools - ansible, overview, installation, module introduction
Important concepts of target detection - IOU, receptive field, hole convolution, mAP
目标检测重要概念——IOU、感受野、空洞卷积、mAP
科技赋能拉萨之“肺”,华为助力拉鲁湿地智慧管理守护绿水青山