当前位置:网站首页>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
边栏推荐
- Facing new challenges and becoming a better self -- attacking technology er
- The difference between searching forward index and inverted index
- Jarvis OJ simple network management protocol
- The memory of a Zhang
- Binary tree related OJ problems
- Sentinel-流量防卫兵
- 为季前卡牌游戏 MotoGP Ignition Champions 做好准备!
- Benji Banas membership pass holders' second quarter reward activities update list
- How to uninstall MySQL cleanly
- Combined use of vant popup+ other components and pit avoidance Guide
猜你喜欢

养不起真猫,就用代码吸猫 -Unity 粒子实现画猫咪

Basic introduction to the control of the row component displaying its children in the horizontal array (tutorial includes source code)

Learnopongl notes (I)

Fleet tutorial 09 basic introduction to navigationrail (tutorial includes source code)

Detailed explanation of use scenarios and functions of polar coordinate sector diagram

Pspnet | semantic segmentation and scene analysis

File operation --i/o

《21天精通TypeScript-3》-安装搭建TypeScript开发环境.md

Games101 notes (III)

BS-XX-042 基于SSM实现人事管理系统
随机推荐
Enterprise backup software Veritas NetBackup (NBU) 8.1.1 installation and deployment of server
一些認知的思考
2020-2022两周年创作纪念日
如何安装mysql
Hiengine: comparable to the local cloud native memory database engine
Summary of PHP pseudo protocol of cisp-pte
Detailed explanation of use scenarios and functions of polar coordinate sector diagram
Do sqlserver have any requirements for database performance when doing CDC
一些认知的思考
挖财股票开户安全吗?怎么开股票账户是安全?
【刷题篇】有效的数独
详解SQL中Groupings Sets 语句的功能和底层实现逻辑
Explain in detail the functions and underlying implementation logic of the groups sets statement in SQL
解决CMakeList find_package找不到Qt5,找不到ECM
Explain in detail the functions and underlying implementation logic of the groups sets statement in SQL
有序链表集合求交集 方法 总结
Jarvis OJ shell traffic analysis
Bs-xx-042 implementation of personnel management system based on SSM
Google Earth engine (GEE) -- a brief introduction to kernel kernel functions and gray level co-occurrence matrix
yarn 常用命令
