当前位置:网站首页>npm、cnpm的安装
npm、cnpm的安装
2022-08-02 05:18:00 【m0_67393413】
- 下载node.js https://nodejs.org/en/download/

我选择安装在D盘,
2.安装完毕在命令行输入以下命令测试是否安装成功,正确会出现版本号,我选择了使用管理员身份运行
npm -v
3.改变原有的环境变量
(1) 我们要先配置npm的全局模块的存放路径以及cache的路径,例如我希望将以上两个文件夹放在NodeJS的主目录下,便在NodeJs下建立"node_global"及"node_cache"两个文件夹,输入以下命令改变npm配置
1 npm config set prefix “D: odejs ode_global”
2 npm config set cache “D: odejs ode_cache”
(2)在系统环境变量添加系统变量NODE_PATH
二、安装淘宝npm(cnpm)
1.安装cnpm
(1)输入以下命令
npm install -g cnpm --registry=https://registry.npm.taobao.org
可以看见cnpm安装在D: odejs ode_global目录下
(2)添加系统变量path的内容
(3)查看是否成功,cnpm -v
参考了https://blog.csdn.net/zy103118/article/details/117249677博主的文章
先自我介绍一下,小编13年上师交大毕业,曾经在小公司待过,去过华为OPPO等大厂,18年进入阿里,直到现在。深知大多数初中级java工程师,想要升技能,往往是需要自己摸索成长或是报班学习,但对于培训机构动则近万元的学费,着实压力不小。自己不成体系的自学效率很低又漫长,而且容易碰到天花板技术停止不前。因此我收集了一份《java开发全套学习资料》送给大家,初衷也很简单,就是希望帮助到想自学又不知道该从何学起的朋友,同时减轻大家的负担。添加下方名片,即可获取全套学习资料哦
边栏推荐
- oracle 远程连接数据库
- BGP experiment (route reflector, federation, route optimization)
- A list of 300+ learning resources compiled by senior engineers of the Tao Department (the latest version in 2021)
- 【漫画】2021满分程序员行为对照表(最新版)
- What are the ways to improve software testing capabilities?After reading this article, it will take you up a notch
- flex布局(弹性布局)
- [C language] LeetCode26. Delete duplicates in an ordered array && LeetCode88. Merge two ordered arrays
- 无代码生产新模式探索
- 配合蓝牙打印的encoding-indexes.js文件内容:
- Deep learning - CNN realizes the recognition of MNIST handwritten digits
猜你喜欢

Deep learning - CNN realizes the recognition of MNIST handwritten digits

Important concepts of target detection - IOU, receptive field, hole convolution, mAP

51单片机外设篇:DS18B20

leetcode-338.比特位计数

代码编世界 科技创未来

Redis-----非关系数据库

zabbix邮件报警和微信报警

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

测试环境要多少?从成本与效率说起

Mysql数据库 | 基于Docker搭建Mysql-8.0以上版本主从实例实战
随机推荐
oracle 远程连接数据库
如何进行并发数计算(稳定性测试和压力测试)?
[OpenCV from entry to practice] image processing technology [pixel] (the most detailed in the whole network)
回文串求解的进阶方法
Leetcode parentheses matching problem -- 32. The longest parentheses effectively
What are the ways to improve software testing capabilities?After reading this article, it will take you up a notch
The virtual reality real estate display system foresees the future decoration effect in advance
BGP+MPLS综合实验
Deep learning - CNN realizes the recognition of MNIST handwritten digits
Packaging and deployment of go projects
Meta公司内部项目-RaptorX:将Presto性能提升10倍
leetcode一步解决链表合并问题
Redis database
leetcode括号匹配问题——32.最长有效括号
Polar Parametrization for Vision-based Surround-View 3D Detection 论文笔记
Redis(十二) - Redis消息队列
leetcode 204. Count Primes 计数质数 (Easy)
提高软件测试能力的方法有哪些?看完这篇文章让你提升一个档次
MySQL数据表的基本操作和基于 MySQL数据表的基本操作的综合实例项目
25K test old bird's 6-year experience in interviews, four types of companies, four types of questions...