当前位置:网站首页>NPM installation
NPM installation
2022-07-05 16:58:00 【Hepburn he0】
1. download node, Unzip and install
Download address :http://nodejs.cn/download/
2. Administrator rights cmd, Check whether the installation is successful
although node Automatically npm edition , But not the latest version
Be careful , see npm -v Errors may be reported during version :npm warn config global --global
, --local
are deprecated. use --location=global
instead.
solve : Modify the configuration file
npm config Command found npm Configuration directory for
npm config ls
npm config list
npm config ls -l
find 2 In a file prefix -g Replace with prefix --location=global
Close the previous command line window after modification , Reopen the test
3. Configure mirror station
npm config set registry=http://registry.npm.taobao.org // Configure mirror station
npm config get registry // Check the mirror station
test npm install vue
npm install vue -g
Test installation vue-router
npm install vue-router -g
Reference documents :https://www.cnblogs.com/lgx5/p/10732016.html
边栏推荐
猜你喜欢
Jarvis OJ Flag
Oneforall installation and use
Solution of vant tabbar blocking content
Pspnet | semantic segmentation and scene analysis
[brush questions] effective Sudoku
composer安装报错:No composer.lock file present.
Basic introduction to the control of the row component displaying its children in the horizontal array (tutorial includes source code)
阈值同态加密在隐私计算中的应用:解读
Solve cmakelist find_ Package cannot find Qt5, ECM cannot be found
【组队 PK 赛】本周任务已开启 | 答题挑战,夯实商品详情知识
随机推荐
Learnopongl notes (I)
【剑指 Offer】61. 扑克牌中的顺子
ECU简介
How was the middle table destroyed?
Benji Banas membership pass holders' second quarter reward activities update list
Do sqlserver have any requirements for database performance when doing CDC
[echart] resize lodash 实现窗口缩放时图表自适应
ECU introduction
Explain in detail the functions and underlying implementation logic of the groups sets statement in SQL
国内首家 EMQ 加入亚马逊云科技「初创加速-全球合作伙伴网络计划」
为季前卡牌游戏 MotoGP Ignition Champions 做好准备!
阈值同态加密在隐私计算中的应用:解读
采用药丸屏的iPhone14或引发中国消费者的热烈抢购
sqlserver 做cdc 要对数据库性能有什么要求么
【剑指 Offer】62. 圆圈中最后剩下的数字
Solution of vant tabbar blocking content
Timestamp strtotime the day before or after the date
Benji Bananas 会员通行证持有人第二季奖励活动更新一览
Keras crash Guide
解决CMakeList find_package找不到Qt5,找不到ECM