When executing: npm install, an error is reported: if you are behind a proxy, please make sure that theProxyconfig is set properly.
1. When executing: npm install, it has been executed for about half an hour, and an error is reported: if you are behind a proxy, please make sure that theProxyconfig is set properly. . as shown in Figure 1
PS e:\wwwroot\shopify-theme> npm install -g @shopify/cli@3.32.0 @shopify/theme@3.32.0
npm err! code econnreset
npm err! errno econnreset
NPM ERR! Network request to https://registry.npmjs.org/@shopify%2fplugin-ngrok failed, reason: client Network Socket Disconnected Before Secure TLS Connection Was Established
NPM ERR! Network this is a problem related.
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! networkProxyconfig is set properly. See:npm help config
npm err! a complete log of this run can be found in:
npm err! C:\Users\Lenovo\AppData\local\npm-cache\_logs\2023-02-16t06_06_14_242z-debug-0.log
PS E:\wwwroot\shopify-theme>
PS E:\wwwroot\shopify-theme>
PS E:\wwwroot\shopify-theme>
PS e:\wwwroot\shopify-theme> npm install -g @shopify/cli@3.32.0 @shopify/theme@3.32.0
npm err! code econnrefused
npm err! syscall connect
npm err! errno econnrefused
npm err! fetchError: request to https://registry.npmjs.org/@shopify%2fplugin-ngrok failed, reason: Connect EconnRefused 127.0.0.1:8888
npm err! at clientrequest.<anonymous> (C:\Users\Lenovo\AppData\Roaming\npm\node_modules\npm\node_modules\minipass-fetch\lib\index.js:130:14)
NPM ERR! at ClientRequest.Emit (node:events:390:28)
npm err! at onerror (C:\Users\Lenovo\AppData\Roaming\npm\Node_Modules\n PM\node_modules\agent-base\dist\src\index.js:117:21)
ex.js:136:17)
npm err! at runmicrotasks (<anonymous>)
NPM ERR! at ProcessTicksandrejections (node:internal/process/task_queues:96:5)
npm err! fetchError: request to https://registry.npmjs.org/@shopify%2fplugin-ngrok failed, reason: Connect EconnRefused 127.0.0.1:8888
npm err! at clientrequest.<anonymous> (C:\Users\Lenovo\AppData\Roaming\npm\node_modules\npm\node_modules\minipass-fetch\lib\index.js:130:14)
NPM ERR! at ClientRequest.Emit (node:events:390:28)
npm err! at onerror (C:\Users\Lenovo\AppData\Roaming\npm\Node_Modules\n PM\node_modules\agent-base\dist\src\index.js:117:21)
npm err! at callbackError (C:\Users\Lenovo\AppData\Roaming\npm\Node_Modules\n PM\node_modules\agent-base\dist\src\index.js:136:17)
npm err! at runmicrotasks (<anonymous>)
npm err! at processTicksandrejections (node:internal/process/task_queues:96:5) {
npm err! code:econnrefused,
npm err! errno:econnrefused,
npm err! syscall:connect,
npm err! address:127.0.0.1,
npm err! port: 8888,
npm err! type:system,
npm err! requiredby:node_modules/@shopify/cli
npm err! }
npm err!
npm err! If you are behind a proxy, please make sure that the
npm err!Proxyconfig is set properly. See:npm help config
npm err! a complete log of this run can be found in:
npm err! C:\Users\Lenovo\AppData\local\npm-cache\_logs\2023-02-16t07_23_47_970z-debug-0.log
PS e:\wwwroot\shopify-theme> npm install -g @shopify/cli@3.32.0 @shopify/theme@3.32.0
npm err! code econnrefused
npm err! syscall connect
npm err! errno econnrefused
npm err! fetchError: request to https://registry.npmjs.org/@shopify%2fplugin-ngrok failed, reason: Connect EconnRefused 127.0.0.1:8888
npm err! at clientrequest.<anonymous> (C:\Users\Lenovo\AppData\Roaming\npm\node_modules\npm\node_modules\minipass-fetch\lib\index.js:130:14)
NPM ERR! at ClientRequest.Emit (node:events:390:28)
npm err! at onerror (C:\Users\Lenovo\AppData\Roaming\npm\Node_Modules\n PM\node_modules\agent-base\dist\src\index.js:117:21)
npm err! at callbackError (C:\Users\Lenovo\AppData\Roaming\npm\Node_Modules\n PM\node_modules\agent-base\dist\src\index.js:136:17)
npm err! at runmicrotasks (<anonymous>)
NPM ERR! at ProcessTicksandrejections (node:internal/process/task_queues:96:5)
npm err! fetchError: request to https://registry.npmjs.org/@shopify%2fplugin-ngrok failed, reason: Connect EconnRefused 127.0.0.1:8888
npm err! at clientrequest.<anonymous> (C:\Users\Lenovo\AppData\Roaming\npm\node_modules\npm\node_modules\minipass-fetch\lib\index.js:130:14)
NPM ERR! at ClientRequest.Emit (node:events:390:28)
npm err! at onerror (C:\Users\Lenovo\AppData\Roaming\npm\Node_Modules\n PM\node_modules\agent-base\dist\src\index.js:117:21)
npm err! at callbackError (C:\Users\Lenovo\AppData\Roaming\npm\Node_Modules\n PM\node_modules\agent-base\dist\src\index.js:136:17)
npm err! at runmicrotasks (<anonymous>)
npm err! at processTicksandrejections (node:internal/process/task_queues:96:5) {
npm err! code:econnrefused,
npm err! errno:econnrefused,
npm err! syscall:connect,
npm err! address:127.0.0.1,
npm err! port: 8888,
npm err! type:system,
npm err! requiredby:node_modules/@shopify/cli
npm err! }
npm err!
npm err! If you are behind a proxy, please make sure that the
npm err!Proxyconfig is set properly. See:npm help config
npm err! a complete log of this run can be found in:
npm err! C:\Users\Lenovo\AppData\local\npm-cache\_logs\2023-02-17t03_04_00_835z-debug-0.log
2. Check the npm proxy settings, the value is: https://127.0.0.1:8888/
PS E:\wwwroot\shopify-theme> npm config get proxy https://127.0.0.1:8888/
3. Decide to delete the npm proxy settings.
PS E:\wwwroot\shopify-theme> npm config rm proxy PS E:\wwwroot\shopify-theme> npm config rm https-proxy PS E:\wwwroot\shopify-theme> npm config get proxy null PS E:\wwwroot\shopify-theme>
4. Execute the installation command again, no more errors.
PS e:\wwwroot\shopify-theme> npm install -g @shopify/cli@3.32.0 @shopify/theme@3.32.0 npm warn deprecated @oclif/screen@3.0.4: deprecated in favor of @oclif/core npm warn deprecated @oclif/screen@3.0.4: deprecated in favor of @oclif/core Added 956 packages in 1M 111 Packages are looking for funding run `npm fund` for details PS E:\wwwroot\shopify-theme> Shopify version Current Shopify CLI Version: 3.32.0 💡 Version 3.43.0 Available! PS E:\wwwroot\shopify-theme>
