当前位置:网站首页>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
边栏推荐
- STM32——DMA
- [C language] Detailed explanation of operators
- Linux的mysql报ERROR 1045 (28000) Access denied for user ‘root‘@‘localhost‘ (using password NOYSE)
- 【一起学Rust】Rust学习前准备——注释和格式化输出
- MySQL8.0.26安装配置教程(windows 64位)
- MySQL事务(transaction) (有这篇就足够了..)
- Summary of MySQL common interview questions (recommended collection!!!)
- 太厉害了,终于有人能把文件上传漏洞讲的明明白白了
- Distributed Transactions - Introduction to Distributed Transactions, Distributed Transaction Framework Seata (AT Mode, Tcc Mode, Tcc Vs AT), Distributed Transactions - MQ
- PCL calculates the point cloud coordinate maximum and its index
猜你喜欢
MySQL database addition, deletion, modification and query (detailed explanation of basic operation commands)
ERROR 2003 (HY000) Can't connect to MySQL server on 'localhost3306' (10061)Solution
MySQL optimization slow log query
【JS面试题】面试官:“[1,2,3].map(parseInt)“ 输出结果是什么?答上来就算你通过面试
MySQL优化之慢日志查询
mysql使用on duplicate key update批量更新数据
2022-07-30:以下go语言代码输出什么?A:[]byte{} []byte;B:[]byte{} []uint8;C:[]uint8{} []byte;D:[]uin8{} []uint8。
Redis进阶 - 缓存问题:一致性、穿击、穿透、雪崩、污染等.
MySQL optimization: from ten seconds to three hundred milliseconds
分布式事务——分布式事务简介、分布式事务框架 Seata(AT模式、Tcc模式、Tcc Vs AT)、分布式事务—MQ
随机推荐
Temporal线上部署
MySQL forgot password
Sql解析转换之JSqlParse完整介绍
Unity框架设计系列:Unity 如何设计网络框架
Unity mobile game performance optimization series: performance tuning for the CPU side
.NET-9. A mess of theoretical notes (concepts, ideas)
Minio upload file ssl certificate is not trusted
ERROR 2003 (HY000) Can't connect to MySQL server on 'localhost3306' (10061)Solution
ES 源码 API调用链路源码分析
Duplicate entry ‘XXX‘ for key ‘XXX.PRIMARY‘解决方案。
Temporal介绍
CentOS7 —— yum安装mysql
MySQL transaction isolation level, rounding
【LeetCode-SQL每日一练】——2. 第二高的薪水
MySQL优化之慢日志查询
Sun Wenlong, Secretary General of the Open Atom Open Source Foundation |
Heavyweight | The Open Atomic School Source Line activity was officially launched
12个MySQL慢查询的原因分析
Numpy中np.meshgrid的简单用法示例
2022-07-30:以下go语言代码输出什么?A:[]byte{} []byte;B:[]byte{} []uint8;C:[]uint8{} []byte;D:[]uin8{} []uint8。