npm install: rollbackFailedOptional issue

Viewed 19

I have tried all stack overflow solutions but i am not able to install any package using npm. My environment is Windows 11 Pro.

MY .npmrc file containsenter image description here

I have tried

  1. removing proxy
  2. setting registry
  3. Other StackOverflow solutions

My proxy information is netsh winhttp show proxy

I an getting this error enter image description here

My my debug log file 0 info it worked if it ends with ok 1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe', 1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli 'install', 1 verbose cli 'express' ] 2 info using npm@6.14.12 3 info using node@v10.24.1 4 verbose npm-session d686995c44845fe1 5 silly install loadCurrentTree 6 silly install readLocalPackageData 7 silly fetchPackageMetaData error for express@^4.18.1 request to https://registry.npmjs.org/express failed, reason: connect ETIMEDOUT 104.16.19.35:443 8 timing stage:rollbackFailedOptional Completed in 2ms 9 timing stage:runTopLevelLifecycles Completed in 133674ms 10 verbose type system 11 verbose stack FetchError: request to https://registry.npmjs.org/express failed, reason: connect ETIMEDOUT 104.16.19.35:443 11 verbose stack at ClientRequest.req.on.err (C:\Users\91799\AppData\Roaming\nvm\v10.24.1\node_modules\npm\node_modules\node-fetch-npm\src\index.js:68:14) 11 verbose stack at ClientRequest.emit (events.js:198:13) 11 verbose stack at TLSSocket.socketErrorListener (_http_client.js:401:9) 11 verbose stack at TLSSocket.emit (events.js:198:13) 11 verbose stack at emitErrorNT (internal/streams/destroy.js:91:8) 11 verbose stack at emitErrorAndCloseNT (internal/streams/destroy.js:59:3) 11 verbose stack at process._tickCallback (internal/process/next_tick.js:63:19) 12 verbose cwd D:\MCA\Semester3\pro-mern-stack-2 13 verbose Windows_NT 10.0.22000 14 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "express" 15 verbose node v10.24.1 16 verbose npm v6.14.12 17 error code ETIMEDOUT 18 error errno ETIMEDOUT 19 error network request to https://registry.npmjs.org/express failed, reason: connect ETIMEDOUT 104.16.19.35:443 20 error network This is a problem related to network connectivity. 20 error network In most cases you are behind a proxy or have bad network settings. 20 error network 20 error network If you are behind a proxy, please make sure that the 20 error network 'proxy' config is set properly. See: 'npm help config' 21 verbose exit [ 1, true ]

0 Answers
Related