当前位置:网站首页>解决报错: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即可。
边栏推荐
- Introduction to paddle - using lenet to realize image classification method II in MNIST
- 6. Dropout application
- Jemter distributed
- 利用GPU训练网络模型
- Handwriting a simulated reentrantlock
- Recommend a document management tool mendely Reference Manager
- Taiwan Xinchuang sss1700 latest Chinese specification | sss1700 latest Chinese specification | sss1700datasheet Chinese explanation
- 12.RNN应用于手写数字识别
- 手机上炒股安全么?
- 9.卷积神经网络介绍
猜你喜欢
Chapter VIII integrated learning
4. Cross entropy
Cross modal semantic association alignment retrieval - image text matching
Fofa attack and defense challenge record
[go record] start go language from scratch -- make an oscilloscope with go language (I) go language foundation
Capstone/cs5210 chip | cs5210 design scheme | cs5210 design data
【深度学习】AI一键换天
Ag9310 same function alternative | cs5261 replaces ag9310type-c to HDMI single switch screen alternative | low BOM replaces ag9310 design
133. Clone map
Ag7120 and ag7220 explain the driving scheme of HDMI signal extension amplifier | ag7120 and ag7220 design HDMI signal extension amplifier circuit reference
随机推荐
14. Draw network model structure
9. Introduction to convolutional neural network
Cross modal semantic association alignment retrieval - image text matching
Know how to get the traffic password
Capstone/cs5210 chip | cs5210 design scheme | cs5210 design data
A network composed of three convolution layers completes the image classification task of cifar10 data set
Reentrantlock fair lock source code Chapter 0
牛客基础语法必刷100题之基本类型
Implementation of adjacency table of SQLite database storage directory structure 2-construction of directory tree
Markdown learning (entry level)
新库上线 | 中国记者信息数据
Introduction to paddle - using lenet to realize image classification method II in MNIST
Cs5261type-c to HDMI alternative ag9310 | ag9310 alternative
C# ?,?.,?? .....
133. 克隆图
Parade ps8625 | replace ps8625 | EDP to LVDS screen adapter or screen drive board
7. Regularization application
How to transfer Netease cloud music /qq music to Apple Music
Handwriting a simulated reentrantlock
Chapter 16 intensive learning