当前位置:网站首页>npm安装
npm安装
2022-07-05 16:14:00 【赫本赫0】
1.下载node,解压并安装
下载地址:http://nodejs.cn/download/
2.管理员权限cmd,查看是否安装成功
虽然node自动npm版本,但是不是最新版本
注意,查看npm -v版本时可能报错:npm warn config global --global, --local are deprecated. use --location=global instead.
解决:修改配置文件
npm config命令找到npm的配置目录
npm config ls
npm config list
npm config ls -l

找到2个文件里面的prefix -g替换为prefix --location=global

修改完成后关闭之前的命令行窗口,重新打开测试
3.配置镜像站
npm config set registry=http://registry.npm.taobao.org // 配置镜像站
npm config get registry // 检查镜像站


测试npm安装vue
npm install vue -g


测试安装vue-router
npm install vue-router -g
边栏推荐
- 面对新的挑战,成为更好的自己--进击的技术er
- Reduce the cost by 40%! Container practice of redis multi tenant cluster
- Single merchant v4.4 has the same original intention and strength!
- [deep learning] [original] let yolov6-0.1.0 support the txt reading dataset mode of yolov5
- Learnopongl notes (I)
- OneForAll安装使用
- Jarvis OJ simple network management protocol
- PSPNet | 语义分割及场景分析
- Pspnet | semantic segmentation and scene analysis
- 极坐标扇图使用场景与功能详解
猜你喜欢

Flet教程之 09 NavigationRail 基础入门(教程含源码)

数据访问 - EntityFramework集成

數據訪問 - EntityFramework集成

Data access - entityframework integration

美国芯片傲不起来了,中国芯片成功在新兴领域夺得第一名

文件操作--I/O

今日睡眠质量记录79分

scratch五彩糖葫芦 电子学会图形化编程scratch等级考试三级真题和答案解析2022年6月
![[team PK competition] the task of this week has been opened | question answering challenge to consolidate the knowledge of commodity details](/img/d8/a367c26b51d9dbaf53bf4fe2a13917.png)
[team PK competition] the task of this week has been opened | question answering challenge to consolidate the knowledge of commodity details

Desci: is decentralized science the new trend of Web3.0?
随机推荐
Explain in detail the functions and underlying implementation logic of the groups sets statement in SQL
Today's sleep quality record 79 points
Jarvis OJ 远程登录协议
Benji Bananas 会员通行证持有人第二季奖励活动更新一览
Can you help me see what the problem is? [ERROR] Could not execute SQL stateme
Keras crash Guide
Win11如何给应用换图标?Win11给应用换图标的方法
一些認知的思考
Cheer yourself up
Single merchant v4.4 has the same original intention and strength!
Jarvis OJ shell流量分析
What is the difference between EDI license and ICP business license
【刷题篇】有效的数独
【刷题篇】鹅厂文化衫问题
Do sqlserver have any requirements for database performance when doing CDC
麻烦问下,DMS中使用Redis语法是以云数据库Redis社区版的命令为参考的嘛
Raspberry pie 4B installation pytorch1.11
[js] skill simplification if empty judgment
DenseNet
有序链表集合求交集 方法 总结
