当前位置:网站首页>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 -l
1.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:
边栏推荐
猜你喜欢
Demis Hassabis:AI 的强大,超乎我们的想象
Echart饼状图标注遮盖解决方案汇总
铁蛋白-AHLL纳米颗粒|人表皮生长因子-铁蛋白重链亚基纳米粒子(EGF-5Cys-FTH1)|铁蛋白颗粒包载氯霉素Chloramphenicol-Ferritin
C语言详解系列——关于调试那些事
OPPO Enco X2 迎来秋季产品升级 旗舰体验全面拉满
2020 ICPC Shanghai Site G
壁仞推出全球最大算力芯片,号称以7nm超越英伟达4nm最新GPU
(12) findContours function hierarchy explanation
【CMU博士论文】视频多模态学习:探索模型和任务复杂性,152页pdf
测试/开发程序员值这么多钱么?“我“不会愿赌服输......
随机推荐
血红素-金纳米颗粒(Heme-AuNP)复合纳米酶|金纳米颗粒核多孔空心碳纳米球壳([email protected])纳米酶
洛谷 P1629 邮递员送信 (三种最短路)
爱丁堡大学最新《因果机器学习: 医疗健康与精准医疗应用》2022综述
leetcode 85.最大矩形 单调栈应用
Auto.js中的悬浮窗
【图像分类】2018-MobileNetV2
测试开发【Mock 平台】08 开发:项目管理(四)编辑功能和Component抽离
LeetCode questions 1-10
UE4 - 河流流体插件Fluid Flux
QSslSocket has not been declared
Apache DolphinScheduler 3.0.0 正式版发布!
【go】依赖注入
cordova installation error Command failed: powershell solution
XML小讲
参天生长大模型:昇腾AI如何强壮模型开发与创新之根?
【golang map】 深入了解map内部存储协议
【CNN】刷SOTA的trick
mysql踩坑----case when then用法
【一致性hash】负载均衡器分发请求
金鱼哥RHCA回忆录:CL210OpenStack操作的故障排除--章节实验