-
Notifications
You must be signed in to change notification settings - Fork 114
Description
Hi,
I am trying to install content toolkit and I have posted this message in that community as well. Posting here as it is failing when installing the @OracleJet dependency -
Getting these exceptions when running npm install -
127 verbose stack FetchError: request to https://registry.npmjs.org/@oracle%2Foraclejet failed, reason: unable to get local issuer certificate
127 verbose stack at ClientRequest. (C:\Program Files\nodejs\node_modules\npm\node_modules\minipass-fetch\lib\index.js:130:14)
127 verbose stack at ClientRequest.emit (node:events:514:28)
127 verbose stack at TLSSocket.socketErrorListener (node:_http_client:501:9)
127 verbose stack at TLSSocket.emit (node:events:526:35)
127 verbose stack at emitErrorNT (node:internal/streams/destroy:151:8)
127 verbose stack at emitErrorCloseNT (node:internal/streams/destroy:116:3)
127 verbose stack at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
128 verbose cwd C:\content-and-experience-toolkit-master\sites
129 verbose Windows_NT 10.0.19045
130 verbose node v18.17.0
131 verbose npm v9.6.7
132 error code UNABLE_TO_GET_ISSUER_CERT_LOCALLY
133 error errno UNABLE_TO_GET_ISSUER_CERT_LOCALLY
134 error request to https://registry.npmjs.org/@oracle%2Foraclejet failed, reason: unable to get local issuer certificate
135 verbose exit 1
As mentioned in the logs, this is the node version : v18.17.0 and npm version: v9.6.7
Also, downloaded the certificate from this URL : https://registry.npmjs.org/@oracle%2Foraclejet and added to the cafile property and also tried adding the NODE_EXTRA_CA_CERTS value in the System environmental variables. Most of the forums suggesting to make the strict-ssl as false; I cannot do this as per our company policy. Also, should I be using any other node/npm versions? Anyone has come across this kind of error before? please advise.