终端提示警告
npm WARN config global --global, --local are deprecated. Use --location=global instead.

解决

1、找到nodejs安装目录,编辑npm.cmd​​

npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead._拖拽


2、修改 prefix -g 部分

npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead._拖拽_02


3、此时保存这个文件只读模式,可以另存到桌面,然后再拖拽进来,替换,ok!