当前位置:网站首页>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
边栏推荐
- Explain in detail the functions and underlying implementation logic of the groups sets statement in SQL
- Flet教程之 09 NavigationRail 基础入门(教程含源码)
- Sentinel flow guard
- Jarvis OJ 简单网管协议
- 10 minutes to help you get ZABBIX monitoring platform alarm pushed to nail group
- 解决CMakeList find_package找不到Qt5,找不到ECM
- Data verification before and after JSON to map -- custom UDF
- Dare not buy thinking
- Flet教程之 11 Row组件在水平数组中显示其子项的控件 基础入门(教程含源码)
- tf. sequence_ Mask function explanation case
猜你喜欢

Oneforall installation and use

DeSci:去中心化科学是Web3.0的新趋势?

【 brosser le titre 】 chemise culturelle de l'usine d'oies

Solution of vant tabbar blocking content

Summary of PHP pseudo protocol of cisp-pte

DenseNet

Jarvis OJ Webshell分析

为季前卡牌游戏 MotoGP Ignition Champions 做好准备!

【学术相关】多位博士毕业去了三四流高校,目前惨不忍睹……

怎样在电脑上设置路由器的WiFi密码
随机推荐
DeSci:去中心化科学是Web3.0的新趋势?
不敢买的思考
Sentinel-流量防卫兵
File operation --i/o
如何安装mysql
Bs-xx-042 implementation of personnel management system based on SSM
數據訪問 - EntityFramework集成
Benji Bananas 会员通行证持有人第二季奖励活动更新一览
详解SQL中Groupings Sets 语句的功能和底层实现逻辑
Flet教程之 09 NavigationRail 基础入门(教程含源码)
PHP人才招聘系统开发 源代码 招聘网站源码二次开发
如何将mysql卸载干净
Apple has abandoned navigationview and used navigationstack and navigationsplitview to implement swiftui navigation
【729. 我的日程安排表 I】
Facing new challenges and becoming a better self -- attacking technology er
[js] skill simplification if empty judgment
网站页面禁止复制内容 JS代码
一些認知的思考
EDI许可证和ICP经营性证有什么区别
Migrate /home partition
