当前位置:网站首页>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
边栏推荐
- C语言入门实战(13):十进制数转二进制
- leetcode一步解决链表合并问题
- 在腾讯做外包测试的那些日子.....
- Say good woman programmers do testing have an advantage?More than a dozen interview, abuse of cry ~ ~ by the interviewer
- Features and installation of non-relational database MongoDB
- 代码编世界 科技创未来
- Nacos注册中心的部署与用法详细介绍
- VMTK环境配置记录
- zabbix邮件报警和微信报警
- 程序员写PPT的小技巧
猜你喜欢

Detailed explanation of interface in Go language

The advantages of making web3d dynamic product display

MarkDown公式指导手册

Cyber Security Learning - Intranet Penetration 4

Linux CentOS8安装Redis6

字节面试题:如何保证缓存和数据库的一致性

Shell 脚本不同玩法

Tips for programmers to write PPT
![[C language] LeetCode26. Delete duplicates in an ordered array && LeetCode88. Merge two ordered arrays](/img/eb/9b05508e88b7f17d80de2afa8c08ce.png)
[C language] LeetCode26. Delete duplicates in an ordered array && LeetCode88. Merge two ordered arrays

BGP experiment (route reflector, federation, route optimization)
随机推荐
npm 无法将“npm”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
家用 NAS 服务器(4)| MergerFS和SnapRaid数据定时备份
pytorch常用函数
leetcode solves the linked list merge problem in one step
MySQL索引常见面试题(2022版)
腾讯大咖分享 | 腾讯Alluxio(DOP)在金融场景的落地与优化实践
机器学习——支持向量机原理
国际顶会OSDI首度收录淘宝系统论文,端云协同智能获大会主旨演讲推荐
DNS的解析流程
HCIP第十七天
Not annotated parameter overrides @NonNullApi parameter
oracle 远程连接数据库
【解决】RESP.app 连接不上redis
NPM 安装指定版本包的方法及版本号查看
pl/sql之神奇的嵌套与变量生命周期
C竞赛训练
[C language] LeetCode26. Delete duplicates in an ordered array && LeetCode88. Merge two ordered arrays
eggjs controller层调用controller层解决方案
Redis-----非关系数据库
C 竞赛——捕鱼