当前位置:网站首页>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 transaction isolation level, rounding

MySQL开窗函数

MySQL忘记密码怎么办

精解四大集合框架:List 核心知识总结

Go language study notes - dealing with timeout problems - Context usage | Go language from scratch

ES 源码 API调用链路源码分析

Apache DButils使用注意事项--with modifiers “public“

MySQL优化:从十几秒优化到三百毫秒

TOGAF之架构标准规范(一)

Blockbuster | foundation for platinum, gold, silver gave nameboards donors
随机推荐
MySQL-Explain详解
MySQL忘记密码怎么办
ABC D - Distinct Trio (Number of k-tuples
MySQL优化之慢日志查询
Apache DButils使用注意事项--with modifiers “public“
MySQL8.0安装教程,在Linux环境安装MySQL8.0教程,最新教程 超详细
1. 获取数据-requests.get()
益智类游戏关卡设计:逆推法--巧解益智类游戏关卡设计
CentOS7 - yum install mysql
面试Redis 高可靠性|主从模式、哨兵模式、Cluster集群模式
wx.miniProgram.navigateTo在web-view中跳回小程序并传参
Redis进阶 - 缓存问题:一致性、穿击、穿透、雪崩、污染等.
Tapdata 与 Apache Doris 完成兼容性互认证,共建新一代数据架构
matlab simulink欠驱动水面船舶航迹自抗扰控制研究
DVWA靶场环境搭建
DVWA安装教程(懂你的不懂·详细)
MySQL-如何分库分表?一看就懂
Simple read operation of EasyExcel
MySQL优化:从十几秒优化到三百毫秒
MySQL optimization slow log query