当前位置:网站首页>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
边栏推荐
猜你喜欢

Keras crash Guide

采用药丸屏的iPhone14或引发中国消费者的热烈抢购

DenseNet
![[brush title] goose factory shirt problem](/img/c8/44496c767a778101cf3982bd911933.png)
[brush title] goose factory shirt problem

Single merchant v4.4 has the same original intention and strength!

Jarvis OJ webshell analysis

Enter a command with the keyboard

中间表是如何被消灭的?

The new version of effect editor is online! 3D rendering, labeling, and animation, this time an editor is enough

Flet教程之 09 NavigationRail 基础入门(教程含源码)
随机推荐
Cs231n notes (bottom) - applicable to 0 Foundation
Win11如何给应用换图标?Win11给应用换图标的方法
PHP 严格模式
用键盘输入一条命令
解决CMakeList find_package找不到Qt5,找不到ECM
tf.sequence_mask函数讲解案例
Google Earth engine (GEE) -- a brief introduction to kernel kernel functions and gray level co-occurrence matrix
采用药丸屏的iPhone14或引发中国消费者的热烈抢购
中间表是如何被消灭的?
Google Earth Engine(GEE)——Kernel核函数简单介绍以及灰度共生矩阵
Android privacy sandbox developer preview 3: privacy, security and personalized experience
今日睡眠质量记录79分
Today's sleep quality record 79 points
Games101 notes (I)
Get ready for the pre-season card game MotoGP ignition champions!
What is the difference between EDI license and ICP business license
Sentinel-流量防卫兵
Summary of PHP pseudo protocol of cisp-pte
一些认知的思考
How can programmers improve their situation?
