I got multiple errors while installing redux-thunk. here's the error message:
npm ERR! code ETIMEDOUT
npm ERR! syscall connect
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npmjs.org/redux-thunk failed, reason: connect ETIMEDOUT 2606:4700::6810:1223:443
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR! /home/virgiawan/.npm/_logs/2023-03-06T08_58_01_128Z-debug-0.log
and this is the complete log
0 verbose cli /usr/bin/node /usr/bin/npm
1 info using npm@9.4.0
2 info using node@v19.6.0
3 timing npm:load:whichnode Completed in 2ms
4 timing config:load:defaults Completed in 2ms
5 timing config:load:file:/usr/lib/node_modules/npm/npmrc Completed in 0ms
6 timing config:load:builtin Completed in 1ms
7 timing config:load:cli Completed in 2ms
8 timing config:load:env Completed in 1ms
9 timing config:load:file:/media/virgiawan/Duty/BELAJARAN/CAREER SWITCH/Purwadhika/TodoListApps/todo-list/.npmrc Completed in 0ms
10 timing config:load:project Completed in 5ms
11 timing config:load:file:/home/virgiawan/.npmrc Completed in 1ms
12 timing config:load:user Completed in 1ms
13 timing config:load:file:/usr/etc/npmrc Completed in 0ms
14 timing config:load:global Completed in 1ms
15 timing config:load:setEnvs Completed in 0ms
16 timing config:load Completed in 13ms
17 timing npm:load:configload Completed in 13ms
18 timing npm:load:mkdirpcache Completed in 0ms
19 timing npm:load:mkdirplogs Completed in 0ms
20 verbose title npm install redux-thunk
21 verbose argv "install" "redux-thunk"
22 timing npm:load:setTitle Completed in 1ms
23 timing config:load:flatten Completed in 2ms
24 timing npm:load:display Completed in 3ms
25 verbose logfile logs-max:10 dir:/home/virgiawan/.npm/_logs/2023-03-06T08_58_01_128Z-
26 verbose logfile /home/virgiawan/.npm/_logs/2023-03-06T08_58_01_128Z-debug-0.log
27 timing npm:load:logFile Completed in 3ms
28 timing npm:load:timers Completed in 0ms
29 timing npm:load:configScope Completed in 0ms
30 timing npm:load Completed in 23ms
31 timing arborist:ctor Completed in 0ms
32 silly logfile start cleaning logs, removing 1 files
33 silly logfile done cleaning log files
34 timing idealTree:init Completed in 1115ms
35 timing idealTree:userRequests Completed in 4ms
36 silly idealTree buildDeps
37 silly fetch manifest redux-thunk@*
38 timing arborist:ctor Completed in 1ms
39 silly placeDep ROOT redux-thunk@ OK for: todo-list@0.1.0 want: *
40 timing idealTree:#root Completed in 460129ms
41 timing idealTree:node_modules/redux-thunk Completed in 0ms
42 timing idealTree:buildDeps Completed in 460131ms
43 timing idealTree:fixDepFlags Completed in 45ms
44 timing idealTree Completed in 461297ms
45 timing command:install Completed in 461304ms
46 verbose type system
47 verbose stack FetchError: request to https://registry.npmjs.org/redux-thunk failed, reason: connect ETIMEDOUT 2606:4700::6810:1223:443
47 verbose stack at ClientRequest.<anonymous> (/usr/lib/node_modules/npm/node_modules/minipass-fetch/lib/index.js:130:14)
47 verbose stack at ClientRequest.emit (node:events:512:28)
47 verbose stack at TLSSocket.socketErrorListener (node:_http_client:496:9)
47 verbose stack at TLSSocket.emit (node:events:524:35)
47 verbose stack at emitErrorNT (node:internal/streams/destroy:151:8)
47 verbose stack at emitErrorCloseNT (node:internal/streams/destroy:116:3)
47 verbose stack at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
48 verbose cwd /media/virgiawan/Duty/BELAJARAN/CAREER SWITCH/Purwadhika/TodoListApps/todo-list
49 verbose Linux 5.19.0-32-generic
50 verbose node v19.6.0
51 verbose npm v9.4.0
52 error code ETIMEDOUT
53 error syscall connect
54 error errno ETIMEDOUT
55 error network request to https://registry.npmjs.org/redux-thunk failed, reason: connect ETIMEDOUT 2606:4700::6810:1223:443
56 error network This is a problem related to network connectivity.
56 error network In most cases you are behind a proxy or have bad network settings.
56 error network
56 error network If you are behind a proxy, please make sure that the
56 error network 'proxy' config is set properly. See: 'npm help config'
57 verbose exit 1
58 timing npm Completed in 461351ms
59 verbose unfinished npm timer reify 1678093081164
60 verbose unfinished npm timer reify:loadTrees 1678093081167
61 verbose code 1
62 error A complete log of this run can be found in:
62 error /home/virgiawan/.npm/_logs/2023-03-06T08_58_01_128Z-debug-0.log
I've tried many ways from internet to tackle this but still got the same error. please someone help me.
already tried (chatGPT suggestion): 1.Check your internet connection: Ensure that you have a stable internet connection and that your proxy server settings are configured correctly. (I'm sure my internet got no issue)
2.Verify your proxy server settings: Check your npm config settings to ensure that your proxy server settings are correct. You can do this by running npm config list and checking the values for proxy and https-proxy. (I got no proxy)
3.Check your firewall settings: If you are behind a firewall, ensure that it is not blocking the npm registry. You may need to whitelist registry.npmjs.org in your firewall settings.
4.Use a different registry: You can try using a different registry by running npm install redux-thunk --registry=https://registry.npmjs.org/.
5.Disable your proxy server temporarily: If none of the above steps work, you can try temporarily disabling your proxy server and running the npm install command again.
expecting: normal npm install redux-thunk result