当前位置:网站首页>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-upgradeWait 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
边栏推荐
- PWN ROP
- EasyExcel的简单读取操作
- ERROR 1819 (HY000) Your password does not satisfy the current policy requirements
- STM32——DMA
- mysql uses on duplicate key update to update data in batches
- MySQL database addition, deletion, modification and query (detailed explanation of basic operation commands)
- 快速掌握并发编程 --- 基础篇
- Unity resources management series: Unity framework how to resource management
- [debug highlights] Expected input batch_size (1) to match target batch_size (0)
- 【MySQL8入门到精通】基础篇- Linux系统静默安装MySQL,跨版本升级
猜你喜欢

打造基于ILRuntime热更新的组件化开发

Error EPERM operation not permitted, mkdir 'Dsoftwarenodejsnode_cache_cacach Two solutions

MySQL window function
【一起学Rust】Rust的Hello Rust详细解析

Mysql应用安装后找不到my.ini文件

限流的原理

Unity Framework Design Series: How Unity Designs Network Frameworks

快速掌握并发编程 --- 基础篇

工作流编排引擎-Temporal

有了MVC,为什么还要DDD?
随机推荐
Apache DButils使用注意事项--with modifiers “public“
关于小白安装nodejs遇到的问题(npm WARN config global `--global`, `--local` are deprecated. Use `--location=glob)
MYSQL下载及安装完整教程
分布式事务——分布式事务简介、分布式事务框架 Seata(AT模式、Tcc模式、Tcc Vs AT)、分布式事务—MQ
再见了繁琐的Excel,掌握数据分析处理技术就靠它了
12个MySQL慢查询的原因分析
Mysql——字符串函数
MySQL事务(transaction) (有这篇就足够了..)
wx.miniProgram.navigateTo在web-view中跳回小程序并传参
DVWA安装教程(懂你的不懂·详细)
[py script] batch binarization processing images
The MySQL database installed configuration nanny level tutorial for 8.0.29 (for example) have hands
参考代码系列_1.各种语言的Hello World
分布式事务处理方案大 PK!
面试官,不要再问我三次握手和四次挥手
Unity Framework Design Series: How Unity Designs Network Frameworks
Heavyweight | The Open Atomic School Source Line activity was officially launched
mysql stored procedure
Mysql应用安装后找不到my.ini文件
sql statement - how to query data in another table based on the data in one table