当前位置:网站首页>[solution] NPM warn config global ` --global`, `--local` are deprecated Use `--location=global`

[solution] NPM warn config global ` --global`, `--local` are deprecated Use `--location=global`

2022-06-23 16:21:00 Charming

  • After installation node After environment ,npm -v Show the following questions
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
8.11.0
  • node -v That's all right.
  • The solution is as follows :
  1. Open the following four files respectively
     Insert picture description here

  2. And then put the inside prefix -g Replace with prefix --location=global
     Insert picture description here

原网站

版权声明
本文为[Charming]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/174/202206231539498872.html