当前位置:网站首页>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
边栏推荐
- Mysql application cannot find my.ini file after installation
- ERROR 1064 (42000) You have an error in your SQL syntax; check the manual that corresponds to your
- 关于LocalDateTime的全局返回时间带“T“的时间格式处理
- MySQL忘记密码怎么办
- Lua,ILRuntime, HybridCLR(wolong)/huatuo热更新对比分析
- <urlopen error [Errno 11001] getaddrinfo failed>的解决、isinstance()函数初略介绍
- centos7安装mysql5.7
- a different object with the same identifier value was already associated with the session
- MySQL optimization: from ten seconds to three hundred milliseconds
- 【MySQL8入门到精通】基础篇- Linux系统静默安装MySQL,跨版本升级
猜你喜欢

再见了繁琐的Excel,掌握数据分析处理技术就靠它了

Error EPERM operation not permitted, mkdir 'Dsoftwarenodejsnode_cache_cacach Two solutions

centos7安装mysql5.7

MySQL8.0安装教程,在Linux环境安装MySQL8.0教程,最新教程 超详细

Unity资源管理系列:Unity 框架如何做好资源管理

Centos7 install mysql5.7 steps (graphical version)

DVWA安装教程(懂你的不懂·详细)

面试Redis 高可靠性|主从模式、哨兵模式、Cluster集群模式

Unity resources management series: Unity framework how to resource management

ERROR 1819 (HY000) Your password does not satisfy the current policy requirements
随机推荐
Unity Framework Design Series: How Unity Designs Network Frameworks
分布式事务处理方案大 PK!
pycharm专业版使用
Information System Project Manager Core Test Site (55) Configuration Manager (CMO) Work
SQL statement to range query time field
.NET-6.WinForm2.NanUI学习和总结
ERROR 1819 (HY000) Your password does not satisfy the current policy requirements
Simple read operation of EasyExcel
2022-07-30:以下go语言代码输出什么?A:[]byte{} []byte;B:[]byte{} []uint8;C:[]uint8{} []byte;D:[]uin8{} []uint8。
【mysql 提高查询效率】Mysql 数据库查询好慢问题解决
The monitoring of Doris study notes
MySQL优化:从十几秒优化到三百毫秒
MySQL database installation (detailed)
面试官竟然问我怎么分库分表?幸亏我总结了一套八股文
关于LocalDateTime的全局返回时间带“T“的时间格式处理
centos7安装mysql5.7步骤(图解版)
mysql uses on duplicate key update to update data in batches
wx.miniProgram.navigateTo在web-view中跳回小程序并传参
Tapdata 与 Apache Doris 完成兼容性互认证,共建新一代数据架构
DVWA靶场环境搭建