当前位置:网站首页>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
边栏推荐
- 如何优化OpenSumi终端性能?
- OAuth 授权协议 | 都云原生时代了,我们应该多懂一点OAuth ?
- leetcode一步解决链表合并问题
- 国际顶会OSDI首度收录淘宝系统论文,端云协同智能获大会主旨演讲推荐
- BGP实验(路由反射器,联邦,路由优化)
- C语言入门实战(13):十进制数转二进制
- Tips for programmers to write PPT
- 机器学习——支持向量机原理
- How to perform concurrent calculation (stability test and stress test)?
- Automated operation and maintenance tools - ansible, overview, installation, module introduction
猜你喜欢

网安学习-内网渗透4

Alluxio为Presto赋能跨云的自助服务能力

Practice on optimizing startup performance of VS Code

Detailed explanation of interface in Go language

分布式文件存储服务器之Minio对象存储技术参考指南

There are more and more talents in software testing. Why are people still reluctant to take the road of software testing?
![[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

关于鸿蒙系统 JS UI 框架源码的分析

BGP+MPLS综合实验

【解决】RESP.app 连接不上redis
随机推荐
Integrate ssm (1)
Point Density-Aware Voxels for LiDAR 3D Object Detection 论文笔记
Redis(十一) - 异步优化秒杀
机器学习——支持向量机原理
保证家里和企业中的WIFI安全-附AC与AP组网实验
Double for loop case (use js jiujiu printing multiplication table)
股价屡创新低 地产SaaS巨头陷入困境 明源云该如何转型自救?
Redis-cluster mode (master-slave replication mode, sentinel mode, clustering mode)
[OpenCV from entry to practice] image processing technology [pixel] (the most detailed in the whole network)
MySQL索引常见面试题(2022版)
npm 无法将“npm”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
Important concepts of target detection - IOU, receptive field, hole convolution, mAP
在腾讯做外包测试的那些日子.....
Node的安装与环境变量的配置
pytorch基本操作:使用神经网络进行分类任务
5年在职经验之谈:2年功能测试、3年自动化测试,从入门到不可自拔...
蚂蚁三面:MQ 消息丢失、重复、积压问题,有哪些解决方案?
H5 access payment process - WeChat payment & Alipay payment
金山云团队分享 | 5000字读懂Presto如何与Alluxio搭配
MySql统计函数COUNT详解