当前位置:网站首页>[the pro test is valid]npm warn config global ` --global`, `--local` are deprecated Use `--location=global` instead.
[the pro test is valid]npm warn config global ` --global`, `--local` are deprecated Use `--location=global` instead.
2022-07-18 20:58:00 【Wozkishord, Prague】
1. problem :
function npm-v Report errors :npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.

2. resolvent
① Open what you downloaded Node.js file , Find the following four files :

② For this Four files Modify with the permission of ( Otherwise, the contents of the file cannot be modified ):
Right click on the file - Select Properties - Choose safety - Select editor - choice users- Play after full control - Click application - determine
( Be careful : The permissions of the four files should be modified !)

③ Open this Four files , Make statement replacement
The inside :
prefix -gReplace with :
prefix --location=globalAs shown in the figure :

( Be careful : This sentence of the four documents should be modified and replaced ! Don't put the ` It's gone .)
④ Reopen cmd, function npm -v Test it , There should be no problem .

⑤ For the sake of insurance , To put npm Upgrade to the latest version
Open as administrator cmd Input :
npm install -g npm-windows-upgrade
Enter the green part ( Current latest version ):
npm install -g [email protected]end !
Reference link :
npm WARN config global `--global`, `--local` are deprecated. Use `--location Solution
solve npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
边栏推荐
- [untitled]
- Installation and deployment series (I) -- docker compose installation of redis cluster cluster
- 剑指 Offer 57 - II. 和为s的连续正数序列
- Have you met these use case design questions during the interview?
- Interview question 5
- Three ways for industrial parks to enhance the service capacity of enterprises
- [try to hack] NTLM and LM Foundation
- EPIC-KBS9工控机刷机文档
- Electron installation configuration
- 推荐一篇写得很好的“I2C协议讲解”文章
猜你喜欢

Development of power module based on stm32

c语言做推箱子

Data statistical analysis cases (comparative analysis, sales comparison analysis, year-on-year, double coordinate diagram, month on month, shift, contribution analysis (Pareto Law), differentiation an

TransE模型学习笔记

一步到位玩透Ansible-目录

数学建模 - 分类模型(基于logistic回归)

剑指 Offer 54. 二叉搜索树的第k大节点

Sword finger offer 54 The k-th node of binary search tree

Activate Navicat to prompt RSA public key not find

Opencv tutorial 02: core operations of opencv
随机推荐
程序员都看不懂的代码 渐隐渐现1920-500(1)
docker mysql
数学方法 - 封装范围内随机整数-六位随机验证码-随机颜色字符串-进制转换 和 保留小数位
创始人与合伙人股权构架设计
I2C通信协议实现在OLED显示屏数据显示
EPIC-KBS9工控机刷机文档
GD32F4(6):晶振引发串口乱码
R语言使用pcauchy函数生成柯西分布累积分布函数数据、使用plot函数可视化柯西分布累积分布函数数据(Cauchy distribution)
浅谈数组方法重构再封装-forEach-Map——push(),unshift(),shift(),Map(),filter(),every(),some(), reduce()
Pytorch 深度可分离卷积和MobileNet_v1
Scrcpy projection
MySQL查看数据库性能常用命令
剑指 Offer 57 - II. 和为s的连续正数序列
Find out the motivation and needs of enterprise location, and carry out investment attraction work efficiently
Markdown 基本语法格式
Remember these points and you can quickly find bugs
树莓派记录
Initial redis (know redis and common commands)
putchar()
Sword finger offer 57 - ii Continuous positive sequence with sum s