Closed nosaku closed 1 year ago
I am running npm install behind corporate proxy
Hmm ok I had http:// in https_proxy. Chnged to https:// and it worked.
Actually this seems to be problem. My company uses http only for both http and https proxy. Everything else like npm install etc. works fine... only post install script downloading the checkstyle-10.10.0-all.jar is failing. If I change the https_proxy to "https" other things are failing.
If I change the env setting of https_proxy to use "https"... npm install itself hangs forever....
Strange... it uses a very old version of Axios as per the error... when I tried with latest Axios 1.4.0 it works fine
headers: { npm ERR! Accept: 'application/json, text/plain, /', npm ERR! 'User-Agent': 'axios/0.27.2', npm ERR! host: 'objects.githubusercontent.com' npm ERR! }, npm ERR! method: 'get', npm ERR! url: 'https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.10.0/checkstyle-10.10.0-all.jar', npm ERR! responseType: 'stream', npm ERR! data: undefined
Hmm my bad... seems I added long back "@nestjs/axios" version 0.1.0. Trying now with latest 2.0.0. May be this was causing issue?
It's hard to say because I don't use a proxy Edit : How do you configure your proxy ? check this link for options https://www.jhipster.tech/configuring-a-corporate-proxy/
After I changed to latest version of nestjs/axios it worked fine
"@nestjs/axios": "^2.0.0",
Right. Let me close the issue.
Sent from Yahoo Mail on Android
On Mon, May 8, 2023 at 4:23 PM, @.***> wrote:
It's hard to say because I don't use a proxy
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you modified the open/close state.Message ID: @.***>
npm ERR! code 1 npm ERR! path C:\xxxxx\node_modules\@jnxplus\nx-boot-maven npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node src/scripts/install-linters.js npm ERR! node:internal/process/promises:279 npm ERR! triggerUncaughtException(err, true / fromPromise /); npm ERR! ^ npm ERR! AxiosError: write EPROTO 16956:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:c:\ws\deps\openssl\openssl\ssl\record\ssl3_record.c:332: npm ERR! npm ERR! at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:94:16) { npm ERR! syscall: 'write', npm ERR! code: 'EPROTO', npm ERR! errno: -4046, npm ERR! config: { npm ERR! transitional: { npm ERR! silentJSONParsing: true, npm ERR! forcedJSONParsing: true, npm ERR! clarifyTimeoutError: false npm ERR! }, npm ERR! adapter: [Function: httpAdapter], npm ERR! transformRequest: [ [Function: transformRequest] ], npm ERR! transformResponse: [ [Function: transformResponse] ], npm ERR! timeout: 0, npm ERR! xsrfCookieName: 'XSRF-TOKEN', npm ERR! xsrfHeaderName: 'X-XSRF-TOKEN', npm ERR! maxContentLength: -1, npm ERR! maxBodyLength: -1, npm ERR! env: { npm ERR! FormData: [Function: FormData] { npm ERR! LINE_BREAK: '\r\n', npm ERR! DEFAULT_CONTENT_TYPE: 'application/octet-stream' npm ERR! } npm ERR! }, npm ERR! validateStatus: [Function: validateStatus], npm ERR! headers: { npm ERR! Accept: 'application/json, text/plain, /', npm ERR! 'User-Agent': 'axios/0.27.2', npm ERR! host: 'objects.githubusercontent.com' npm ERR! }, npm ERR! method: 'get', npm ERR! url: 'https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.10.0/checkstyle-10.10.0-all.jar', npm ERR! responseType: 'stream', npm ERR! data: undefined npm ERR! },