当前位置:网站首页>About the problems encountered by Xiaobai installing nodejs (npm WARN config global `--global`, `--local` are deprecated. Use `--location=glob)
About the problems encountered by Xiaobai installing nodejs (npm WARN config global `--global`, `--local` are deprecated. Use `--location=glob)
2022-07-31 05:26:00 【m0_67402013】
Today is 7.8 and the problem has been solved!Even rolling and crawling to update!
Summary: Encountering this problem may be because the built-in node version is too low!And it seems to be encountered when upgrading to win11
Wrong way for me:
Although there is a very popular post to change the document -global to --location=global; but my npm -v verification is successful, and Vue will still report an error.
Wrong approach #2 for me:
Refer to the command from another post, npm install -g npm-windows-upgrade
But executing set-ExecutionPolicy has no response:
What finally got me installing correctly:
All you have to do is execute the upgrade command from Window PowerShell:
npm-windows-upgrade
Wait for a while
Then configure the environment variables and you are done!
--------------------------------------------I am the dividing line-----------------------------------------------------------------------
There is a problem with the nodejs download, write an article to see if there is any problem, and the big guy passing by will also help to see it
The first step, download the official website Node.js
It should be right, the generic one on the left side of the download
The second step is to open, install and install continuously
The third step is cmd verification, the first node -v is successful
The second step npm -v reports an error, as shown below
Found a solution in csdm
As done, comment, the document modification here can be modified on the desktop first and then replace the internal file.
Both are modified successfully, and both cmd commands are ok
In the fourth step, an error is reported again, and the same error is reported.
It feels like a version problem
Write this first, solve the update
Let me introduce myself first. The editor graduated from Shanghai Jiaotong University in 2013. I worked in a small company and went to big factories such as Huawei and OPPO. I joined Alibaba in 2018, until now.I know that most junior and intermediate java engineers want to upgrade their skills, they often need to explore their own growth or sign up to study, but for training institutions, the tuition fee is nearly 10,000 yuan, which is really stressful.Self-learning that is not systematic is very inefficient and lengthy, and it is easy to hit the ceiling and the technology stops.Therefore, I collected a "full set of learning materials for java development" for everyone. The original intention is also very simple. I hope to help friends who want to learn by themselves but don't know where to start, and at the same time reduce everyone's burden.Add the business card below to get a full set of learning materials
边栏推荐
- 【一起学Rust】Rust的Hello Rust详细解析
- 质量小议12 -- 以测代评
- matlab simulink欠驱动水面船舶航迹自抗扰控制研究
- Puzzle Game Level Design: Reverse Method--Explaining Puzzle Game Level Design
- 【LeetCode-SQL每日一练】——2. 第二高的薪水
- 限流的原理
- 2022-07-30:以下go语言代码输出什么?A:[]byte{} []byte;B:[]byte{} []uint8;C:[]uint8{} []byte;D:[]uin8{} []uint8。
- Go language study notes - dealing with timeout problems - Context usage | Go language from scratch
- sql语句-如何以一个表中的数据为条件据查询另一个表中的数据
- Unity Framework Design Series: How Unity Designs Network Frameworks
猜你喜欢
益智类游戏关卡设计:逆推法--巧解益智类游戏关卡设计
Summary of MySQL common interview questions (recommended collection!!!)
[R language] [3] apply, tapply, lapply, sapply, mapply and par function related parameters
再见了繁琐的Excel,掌握数据分析处理技术就靠它了
Unity资源管理系列:Unity 框架如何做好资源管理
Lua,ILRuntime, HybridCLR(wolong)/huatuo热更新对比分析
【一起学Rust】Rust的Hello Rust详细解析
Moment Pool Cloud quickly installs packages such as torch-sparse and torch-geometric
DVWA安装教程(懂你的不懂·详细)
分布式事务处理方案大 PK!
随机推荐
[debug highlights] Expected input batch_size (1) to match target batch_size (0)
Interview | Cheng Li, CTO of Alibaba: Cloud + open source together form a credible foundation for the digital world
Lua,ILRuntime, HybridCLR(wolong)/huatuo热更新对比分析
CentOS7 —— yum安装mysql
为什么要用Flink,怎么入门使用Flink?
Unity框架设计系列:Unity 如何设计网络框架
Simple read operation of EasyExcel
【mysql 提高查询效率】Mysql 数据库查询好慢问题解决
信息系统项目管理师核心考点(五十五)配置管理员(CMO)的工作
ERROR 2003 (HY000) Can't connect to MySQL server on 'localhost3306' (10061)Solution
What are the advantages and disadvantages of Unity shader forge and the built-in shader graph?
ABC D - Distinct Trio (Number of k-tuples
DVWA靶场环境搭建
matlab abel变换图片处理
.NET-9.乱七八糟的理论笔记(概念,思想)
Reference code series_1. Hello World in various languages
SQL statement to range query time field
STM32——DMA
Unity resources management series: Unity framework how to resource management
精解四大集合框架:List 核心知识总结