当前位置:网站首页>解决报错: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-07-07 23:20:00 【柠夏小白】
闲来无事重新配置前端环境,在下载完Node.js
后查看是否安装成功,命令行:node -v , npm -v
,判断为Node.js版本过高所致,报错图下:
解决方案:
1.找到Node.js
安装目录下的npm.cmd
脚本文件,以记事本形式打开并编辑;
2.图中黄色圈起来的部分,文件prefix-g 改为 prefix --location=global
,编辑后保存;
3.重新运行命令行npm -v即可。
边栏推荐
- 2.非线性回归
- 11. Recurrent neural network RNN
- STL -- common function replication of string class
- German prime minister says Ukraine will not receive "NATO style" security guarantee
- letcode43:字符串相乘
- Vs code configuration latex environment nanny level configuration tutorial (dual system)
- Know how to get the traffic password
- Vscode reading Notepad Chinese display garbled code
- 1. Linear regression
- [go record] start go language from scratch -- make an oscilloscope with go language (I) go language foundation
猜你喜欢
英雄联盟胜负预测--简易肯德基上校
11. Recurrent neural network RNN
Ag9310 for type-C docking station scheme circuit design method | ag9310 for type-C audio and video converter scheme circuit design reference
完整的模型验证(测试,demo)套路
Two methods for full screen adaptation of background pictures, background size: cover; Or (background size: 100% 100%;)
How to use education discounts to open Apple Music members for 5 yuan / month and realize member sharing
[note] common combined filter circuit
Ag7120 and ag7220 explain the driving scheme of HDMI signal extension amplifier | ag7120 and ag7220 design HDMI signal extension amplifier circuit reference
基于微信小程序开发的我最在行的小游戏
14.绘制网络模型结构
随机推荐
Study notes of single chip microcomputer and embedded system
New library online | information data of Chinese journalists
Su embedded training - Day8
Definition and classification of energy
Introduction to ML regression analysis of AI zhetianchuan
新库上线 | CnOpenData中国星级酒店数据
2. Nonlinear regression
Know how to get the traffic password
Get started quickly using the local testing tool postman
USB type-C docking design | design USB type-C docking scheme | USB type-C docking circuit reference
Analysis of 8 classic C language pointer written test questions
Codeforces Round #804 (Div. 2)(A~D)
13.模型的保存和载入
Taiwan Xinchuang sss1700 latest Chinese specification | sss1700 latest Chinese specification | sss1700datasheet Chinese explanation
网络模型的保存与读取
NVIDIA Jetson test installation yolox process record
4.交叉熵
9.卷积神经网络介绍
Su embedded training - C language programming practice (implementation of address book)
Chapter 5 neural network