当前位置:网站首页>Node installation using NVM succeeded, but NPM installation failed (error while downloading, TLS handshake timeout)
Node installation using NVM succeeded, but NPM installation failed (error while downloading, TLS handshake timeout)
2022-07-24 20:51:00 【Jin Lan】
Use nvm install nodejs Times the following mistakes :
C:\Users\Administrator>nvm install 18.6.0
Downloading node.js version 18.6.0 (64-bit)...
Complete
Downloading npm version 8.13.2... Error while downloading https://github.com/npm/cli/archive/v8.13.2.zip
- Get https://github.com/npm/cli/archive/v8.13.2.zip: net/http: TLS handshake timeout
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x20 pc=0x5c6eb0]
Tips nodejs installation is complete , however npm Download failed , This is the network reason , Because I saw handshake timeout( Handshake timeout ) word ,windows The computer has no ladder , We have to do something else .
Solution 1: Modify image source
modify nvm(windows The default path C:\Users\Administrator\AppData\Roaming\nvm) Configuration file for settings.txt, Copy the following two lines of code into settings.txt Save in file , Don't touch other contents , then Open a new command line Reuse nvm install nodejs that will do .
node_mirror: http://npm.taobao.org/mirrors/node/
npm_mirror: https://npm.taobao.org/mirrors/npm/

If you want to see nodejs edition , have access to nvm list available:
C:\Users\Administrator>nvm list available
| CURRENT | LTS | OLD STABLE | OLD UNSTABLE |
|--------------|--------------|--------------|--------------|
| 18.6.0 | 16.16.0 | 0.12.18 | 0.11.16 |
| 18.5.0 | 16.15.1 | 0.12.17 | 0.11.15 |
| 18.4.0 | 16.15.0 | 0.12.16 | 0.11.14 |
| 18.3.0 | 16.14.2 | 0.12.15 | 0.11.13 |
| 18.2.0 | 16.14.1 | 0.12.14 | 0.11.12 |
| 18.1.0 | 16.14.0 | 0.12.13 | 0.11.11 |
| 18.0.0 | 16.13.2 | 0.12.12 | 0.11.10 |
| 17.9.1 | 16.13.1 | 0.12.11 | 0.11.9 |
| 17.9.0 | 16.13.0 | 0.12.10 | 0.11.8 |
| 17.8.0 | 14.20.0 | 0.12.9 | 0.11.7 |
| 17.7.2 | 14.19.3 | 0.12.8 | 0.11.6 |
| 17.7.1 | 14.19.2 | 0.12.7 | 0.11.5 |
| 17.7.0 | 14.19.1 | 0.12.6 | 0.11.4 |
| 17.6.0 | 14.19.0 | 0.12.5 | 0.11.3 |
| 17.5.0 | 14.18.3 | 0.12.4 | 0.11.2 |
| 17.4.0 | 14.18.2 | 0.12.3 | 0.11.1 |
| 17.3.1 | 14.18.1 | 0.12.2 | 0.11.0 |
| 17.3.0 | 14.18.0 | 0.12.1 | 0.9.12 |
| 17.2.0 | 14.17.6 | 0.12.0 | 0.9.11 |
| 17.1.0 | 14.17.5 | 0.10.48 | 0.9.10 |
This is a partial list. For a complete list, visit https://nodejs.org/download/release
install nodejs:
C:\Users\Administrator>nvm install 18.6.0
Downloading node.js version 18.6.0 (64-bit)...
Complete
Downloading npm version 8.13.2... Complete
Installing npm v8.13.2...
Installation complete. If you want to use this version, type
nvm use 18.6.0
Solution 2: Manual Download nodejs, Change folder name , copy to nvm Under the folder
nodejs Download address of each version :https://registry.npmmirror.com/binary.html?path=node/
According to your own computer , Choose a version of the compressed file to download , Unzip after download , then Change the name to nvm Supported folder names 
Modify the folder name to v16.13.1
Use nvm Command view current node as well as npm Is it available :
C:\Users\Administrator>nvm list
18.6.0
16.16.0
16.15.1
16.13.1
* 14.19.3 (Currently using 64-bit executable)
C:\Users\Administrator>nvm use 16.13.1
Now using node v16.13.1 (64-bit)
C:\Users\Administrator>nvm list
18.6.0
16.16.0
16.15.1
* 16.13.1 (Currently using 64-bit executable)
14.19.3
C:\Users\Administrator>node -v
v16.13.1
C:\Users\Administrator>npm -v
8.1.2
边栏推荐
- Leetcode 1911. maximum subsequence alternating sum
- A simple method of converting SVG to PDF
- Eight transformation qualities that it leaders should possess
- [advanced data processing technology] data filtering, advanced data filling, initial and advanced data transformation
- Upgrade appium automation framework to the latest 2.0
- Actual measurement of Qunhui 71000 Gigabit Network
- Vscode connected to the remote server cannot format the code / document (resolved)
- Unitywebgl project summary (unfinished)
- Preview and save pictures using uni app
- Synthesis of peptide nucleic acid PNA labeled with heptachydrin dye cy7 cy7-pna
猜你喜欢
![[record of question brushing] 16. The sum of the nearest three numbers](/img/b9/a78b72650e94c75ccbe22af1f43857.png)
[record of question brushing] 16. The sum of the nearest three numbers
![[Extension Program - cat scratch 1.0.15 _ online video and audio acquisition artifact _ installation tutorial plus acquisition]](/img/75/5eca7f63758802ecf86a90a1bbdeaf.png)
[Extension Program - cat scratch 1.0.15 _ online video and audio acquisition artifact _ installation tutorial plus acquisition]
![[training Day9] maze [line segment tree]](/img/56/e8458245fe564821740ab94ece37a4.png)
[training Day9] maze [line segment tree]
![[training Day6] game [mathematics]](/img/b2/09c752d789eead9a6b60f4b4b1d5d4.png)
[training Day6] game [mathematics]

How to set appium script startup parameters

Methods of using tyrosine modified peptide nucleic acid PNA | Tyr PNA | BZ Tyr PNA | 99Tcm survivinmrna antisense peptide nucleic acid

Fluoronisin peptide nucleic acid oligomer complex | regular active group alkyne, SH thiol alkynyl modified peptide nucleic acid

Evolution of network IO model

class file has wrong version 55.0, should be 52.0

Actual measurement of Qunhui 71000 Gigabit Network
随机推荐
Leetcode 1911. maximum subsequence alternating sum
Shenzhen Merchants Securities account opening? Is it safe to open a mobile account?
Let's make a nice monthly temperature map of China with ArcGIS
Pychart tutorial: 5 very useful tips
(posted) differences and connections between beanfactory and factorybean
Oracle primary key auto increment setting
[training Day9] rotate [violence] [thinking]
Selenium uploads files in more ways than you think
Alibaba Sentinel 基操
[sciter]: window communication
Mysql8 doesn't seem to support MyISAM partition tables. Does polardb-x support MyISAM partition tables?
[training Day10] tree [interval DP]
In the era of new knowledge economy, who is producing knowledge?
Defects of matrix initialization
Eight transformation qualities that it leaders should possess
APR learning failure problem location and troubleshooting
Appium element positioning - App automated testing
Pressing Ctrl will cause several key press messages
Do you want to verify and use the database in the interface test
Alibaba sentinel basic operation