当前位置:网站首页>Cnpm installation steps
Cnpm installation steps
2022-07-28 23:05:00 【Crying at the front】
install nodeJS
Download from the official website :http://nodejs.cn/download/
Choose a different version download address :https://nodejs.org/zh-cn/download/releases/
Select the version and click download 
Then download the suffix msi, Because the installation is simple 
After selecting the address, install mindless
Two 、 Create folder
After the installation, we open its directory and create two folders ( You need to configure environment variables later )
node_cache
node_global
3、 ... and 、 To configure npm The storage path of the global module 、cache The path of
win+r Input cmd Open the command prompt window , Input :
npm config set prefix " Select just created node_global File path "
npm config set cache " Select just created node_cache File path "
Be careful : The path needs double quotation marks , Pictured :
Four : On the command line, type the following command to install express( notes :“-g” Indicates to install to global Under the table of contents , It's the one set up above node_global in )
This operation can prove the following download cnpm Will be in this directory
npm install express -g

And then we open up nodejs Installation directory , Find the created node_global Under the folder node_modules Of , See if you have just downloaded express
5、 ... and 、 Configure environment variables
Add the newly created... In the system environment variable node_global Under the folder node_modules
6、 ... and 、 download cnpm
Continue typing... On the command line :
npm install -g cnpm --registry=https://registry.npm.taobao.org

In order to download later, you don't need to add registry=https://registry.npm.taobao.org
Continue data command :
npm config set registry http://registry.npm.taobao.org
And then run cnpm -v
Because the system variable path It does not contain cnpm. In system variable path Add the path below to use it normally cnpm.
Add system environment variable

Add user variables 
Then reopen the command prompt
Input
cnpm -v
That's all right.
边栏推荐
- Improvement 17 of yolov5: cnn+transformer -- integrating bottleneck transformers
- Draem+sspcab [anomaly detection: block]
- 安全狗入选《云安全全景图2.0》多个细项
- PCA学习
- Target detection notes -yolo
- 记录一下关于三角函数交换积分次序的一道题
- Morphology of image
- Hbuilderx shortcut key
- 轮子六:QSerialPort 串口数据 收发
- DirectX repair tool download (where is exagear simulator package)
猜你喜欢

Thesis reading (3) - googlenet of classification

console.log()控制台显示...解决办法

Thesis reading (2) - vggnet of classification

《Robust and Communication-Efficient Federated Learning From Non-i.i.d. Data》论文阅读

Learning experience sharing 4: learning experience of yolov7

frontiers出版社投稿记录(附状态变化)

Multi activity disaster recovery construction after 713 failure of station B | takintalks share

【MySQL系列】 MySQL表的增删改查(进阶)
![CFA [anomaly detection: embedded_based]](/img/ee/da822a7e8b443236338d4274b066c7.png)
CFA [anomaly detection: embedded_based]

【C语言】三子棋小游戏实现
随机推荐
Record a question about the order of trigonometric function exchange integrals
Target detection notes fast r-cnn
《MySQL数据库进阶实战》读后感(SQL 小虚竹)
Nacos配置热更新的4种方式、读取项目配置文件的多种方式,@value,@RefreshScope,@NacosConfigurationProperties
Invest 50billion yuan! SMIC capital was officially registered!
轮子六:QSerialPort 串口数据 收发
Summary of the problem that MathType formula does not correspond in word
sql优化常用的几种方法
Improvement 16 of yolov5: replace backbone network C3 with lightweight network pp-lcnet
No code development platform management background tutorial
Es personal arrangement of relevant interview questions
RouYi-Cloud平台 ---项目的启动、登录功能是怎么实现的、怎么样创建新模块
Learning experience sharing 4: learning experience of yolov7
从 IPv4 向 IPv6 的迁移
今年联发科5G芯片出货有望达到5000万套!
[radar] radar signal online sorting based on kernel clustering with matlab code
Es learning directory
npm run dev,运行项目后自动打开浏览器
【三维目标检测】3DSSD(二)
CGLIb 创建代理