当前位置:网站首页>npm warn config global `--global`, `--local` are deprecated. use `--location=global` instead.
npm warn config global `--global`, `--local` are deprecated. use `--location=global` instead.
2022-08-10 20:57:00 【Front end Jia Gongzi】


Solution 1: Modify the configuration file:
1.1 can use the command line.Find the npm configuration directory:
npm config command
npm config lsnpm config listnpm config ls -l1.2 Open the nodejs folder.and open two files npm.cmd and npm

1.3 Find the prefix -g in the two files and replace it with prefix --location=global
prefix --location=global
Before modification:


After modification:


边栏推荐
猜你喜欢

Iridium Ruthenium Alloy/Iridium Oxide Biomimetic Nanozyme | Palladium Nanozyme | GMP-Pd Nanozyme | Gold-Palladium Composite Nanozyme | Ternary Metal Pd-M-Ir Nanozyme |shell nanozyme

【语义分割】2016-SegNet TPAMI

Transferrin (TF) Modified Paclitaxel (PTX) Liposomes (TF-PTX-LP) | Transferrin (Tf) Modified Curcumin Liposomes

QSslSocket has not been declared

win10 xbox录屏功能不能录声音怎么办

@Autowired annotation --required a single bean, but 2 were found causes and solutions

电脑为什么会蓝屏的原因
![[mysql] 深入分析MySQL版本控制MVCC规则](/img/16/e28641c355d941fda50a6e8b7911ee.png)
[mysql] 深入分析MySQL版本控制MVCC规则

leetcode 547.省份数量 并查集

【图像分类】2018-MobileNetV2
随机推荐
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
Transferrin-modified vincristine-tetrandrine liposomes | transferrin-modified co-loaded paclitaxel and genistein liposomes (reagents)
测试开发【Mock 平台】08 开发:项目管理(四)编辑功能和Component抽离
[SWPUCTF 2021 新生赛] web
设备管理中数据聚类处理
Colocate Join :ClickHouse的一种高性能分布式join查询模型
电脑如何去掉u盘写保护的状态
转铁蛋白修饰长春新碱-粉防己碱脂质体|转铁蛋白修饰共载紫杉醇和金雀异黄素脂质体(试剂)
OPPO Enco X2 迎来秋季产品升级 旗舰体验全面拉满
ACM MM 2022 统一归一化:加速Transformer工业部署的归一化方法
(十二)STM32——NVIC中断优先级管理
知识图谱Knowledge Graph
PostgreSQL — 安装及常用命令
链表应用----约瑟夫问题
【图像分类】2019-MoblieNetV3 ICCV
【图像分类】2017-MobileNetV1 CVPR
leetcode:45. 跳跃游戏II
线性结构----链表
代理模式的使用总结
CMU博士论文 | 视频多模态学习:探索模型和任务复杂性