当前位置:网站首页>After the node is installed in the NVM, the display is not internal or external when the NPM instruction is used
After the node is installed in the NVM, the display is not internal or external when the NPM instruction is used
2022-06-30 11:54:00 【July stars】
Problem replay
I reinstalled the computer system some time ago , Download again nvm To manage node edition , Maybe I didn't pay attention when downloading , Use today npm When you're in trouble npm Not internal or external instructions .
Think about Baidu , It's about environmental variables , I install nvm It was changed when D disc , I checked to see that it was automatically configured during installation , I haven't changed environment variables manually .
Input... At the terminal node -v
enter , Alas, the magic thing is that it can show node Version number
Input npm -v
It shows that it is not an internal or external command .
Then I uninstalled my original node edition , When I start again , Ah , I caught the culprit , Look at the picture below .
node The version is downloaded , Shows complete
, But obviously download npm It's a mistake , I thought for the first time that I didn't give nvm The reason for setting the image address .
Solution
Run as administrator cmd, stay cmd Enter the following commands respectively in the window :
nvm node_mirror https://npm.taobao.org/mirrors/node/
nvm npm_mirror https://npm.taobao.org/mirrors/npm/
Then you use it again nvm install node That's all right. . There is no error message .
You can check node Version and npm edition :
All right. , Finally, some of the content of the article comes from This article .
I hope it will help you .
边栏推荐
- 数据库 自动增长
- He was the first hero of Shanghai's two major industries, but died silently in regret
- HMS Core音频编辑服务3D音频技术,助力打造沉浸式听觉盛宴
- In depth analysis of Apache bookkeeper series: Part 4 - back pressure
- 科普達人丨漫畫圖解什麼是eRDMA?
- Using cookie technology to realize historical browsing records and control the number of displays
- 一瓶水引发的“战争”
- Filter error in dplyr: can't transform a data frame with duplicate names
- Cache avalanche and cache penetration solutions
- 盘点那些具有特色的写作软件
猜你喜欢
EMC surge
Who still remembers "classmate Zhang"?
Our company has used this set of general solutions for 7 years, and has opened up dozens of systems, a stable batch!
Redis - SDS simple dynamic string
用于生成学习任务的量子神经网络2022最新综述
Review the writing software with characteristics
Multiparty Cardinality Testing for Threshold Private Set-2021:解读
Pointdistiller: structured knowledge distillation for efficient and compact 3D detection
[pattern recognition]
Object mapping - mapping Mapster
随机推荐
Who still remembers "classmate Zhang"?
限时预约|6 月 Apache Pulsar 中文开发者与用户组会议
R language view version R package view version
wallys/IPQ8074a/2x(4 × 4 or 8 × 8) 11AX MU-MIMO DUAL CONCURRENT EMBEDDEDBOARD
Learn how to implement distributed locks in redis - my own understanding
Re understand oauth2.0 protocol for joint login
揭秘得物客服IM全链路通信过程
Another miserable day by kotlin grammar
Goto statement jump uninitialized variable: c2362
R language ggplot2 visualization: use ggplot2 to visualize the scatter diagram, and_ Set show in the point parameter_ The legend parameter is false, and the legend information is not displayed
Our company has used this set of general solutions for 7 years, and has opened up dozens of systems, a stable batch!
wallys/600VX – 2×2 MIMO 802.11ac Mini PCIe Wi-Fi Module, Dual Band, 2,4GHz / 5GHz QCA 9880
【重温经典C语言】~c语言中%x、%c、%d、%x等等等、c语言取地址符&的作用、C语言中的 联合体
"New digital technology" completed tens of millions of yuan of a + round financing and built an integrated intelligent database cloud management platform
治数如治水,数据治理和数据创新难在哪?
HMS core audio editing service 3D audio technology helps create an immersive auditory feast
服务器常用的一些硬件信息(不断更新)
goto语句跳转未初始化变量:C2362
再不上市,旷视科技就熬不住了
缓存雪崩和缓存穿透解决方案