当前位置:网站首页>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.
边栏推荐
- Invest 145billion euros! EU 17 countries announce joint development of semiconductor technology
- 【复制】互联网术语、简称、缩写
- 投资1450亿欧元!欧盟17国宣布联合发展半导体技术
- recursion and iteration
- Servlet的使用手把手教学(一)
- 一种分布式深度学习编程新范式:Global Tensor
- Nacos配置热更新的4种方式、读取项目配置文件的多种方式,@value,@RefreshScope,@NacosConfigurationProperties
- The tenth improvement of yolov5: the loss function is improved to Siou
- 《Robust and Communication-Efficient Federated Learning From Non-i.i.d. Data》论文阅读
- CGLIb 创建代理
猜你喜欢

Annaconda installs pytoch and switches environments

业界首创云原生安全检测双模型!安全狗重磅报告亮相数字中国建设峰会

Thesis reading (3) - googlenet of classification

18张图,直观理解神经网络、流形和拓扑

Yolov5 improvement 12: replace backbone network C3 with lightweight network shufflenetv2

A new MPLS note from quigo, which must be read when taking the IE exam ---- quigo of Shangwen network

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

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

【C语言】三子棋小游戏实现

Summary of common formula notes for solving problems in Higher Mathematics
随机推荐
Multi activity disaster recovery construction after 713 failure of station B | takintalks share
即将获售高通、联发科芯片,荣耀要超越华为做国内第一?
Is 1E3 a floating point number?
Lenovo r9000p installation matlab2018a+cuda10.0 compilation
Target detection notes SSD
Use FFT, matrix multiplication and conv2d to calculate convolution based on pytorch
Improvement 16 of yolov5: replace backbone network C3 with lightweight network pp-lcnet
一份来自奎哥的全新MPLS笔记,考IE必看 ----尚文网络奎哥
c语言进阶篇:指针(三)
18 diagrams, intuitive understanding of neural networks, manifolds and topologies
【滤波跟踪】基于EKF、时差和频差定位实现目标跟踪附matlab代码
Yolov5 improvement 4: add ECA channel attention mechanism
shell脚本基础——Shell运行原理+变量、数组定义
Es personal arrangement of relevant interview questions
A new MPLS note from quigo, which must be read when taking the IE exam ---- quigo of Shangwen network
sql优化常用的几种方法
业界首创云原生安全检测双模型!安全狗重磅报告亮相数字中国建设峰会
Improvement 11 of yolov5: replace backbone network C3 with lightweight network mobilenetv3
Draem+sspcab [anomaly detection: block]
PCA学习