当前位置:网站首页>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
边栏推荐
- 线程基础(一)
- 无代码生产新模式探索
- selenium + robotframework的运行原理
- Automated operation and maintenance tools - ansible, overview, installation, module introduction
- 面试官:设计“抖音”直播功能测试用例吧
- Home NAS server (4) | MergerFS and SnapRaid data backup
- 51单片机外设篇:ADC
- A list of 300+ learning resources compiled by senior engineers of the Tao Department (the latest version in 2021)
- oracle 远程连接数据库
- leetcode-318.最大单词长度乘积
猜你喜欢

25K test old bird's 6-year experience in interviews, four types of companies, four types of questions...

引领需求 为HR价值正名——“人力资源领先模型HRLM”成功首发

leetcode每天5题-Day04

5款经典代码阅读器的使用方案对比

leetcode一步解决链表合并问题

淘系资深工程师整理的300+项学习资源清单(2021最新版)

金山云团队分享 | 5000字读懂Presto如何与Alluxio搭配

家用 NAS 服务器(4)| MergerFS和SnapRaid数据定时备份

制作web3d动态产品展示的优点

金蝶国际:半年亏掉去年一年,疯狂烧钱的商业模式如何持续
随机推荐
There are more and more talents in software testing. Why are people still reluctant to take the road of software testing?
PIL与numpy格式之间的转换
从入门到精通的MySQL数据库视频教程
蚂蚁三面:MQ 消息丢失、重复、积压问题,有哪些解决方案?
MarkDown公式指导手册
线程基础(一)
NPM ---- 安装yarn
Machine learning -- - theory of support vector machine (SVM)
C语言操作符详解(2)
C 竞赛——捕鱼
Difference and analysis of CPU usage and load
An advanced method for solving palindromes
引领需求 为HR价值正名——“人力资源领先模型HRLM”成功首发
Important concepts of target detection - IOU, receptive field, hole convolution, mAP
npm 无法将“npm”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
为什么4个字节的float要比8个字节的long大呢?
Detailed explanation of interface in Go language
面试官:设计“抖音”直播功能测试用例吧
Linux CentOS8安装Redis6
Polar Parametrization for Vision-based Surround-View 3D Detection Paper Notes