npm-cli-login icon indicating copy to clipboard operation
npm-cli-login copied to clipboard

certificate has expired

Open ParkBeomMin opened this issue 2 years ago • 1 comments

node 18.17.1

npm-cli-login -u test -p test-e [email protected] -r https://npm.test.net:1234

info attempt registry request try #1 at 오후 2:18:39
http request PUT https://npm.test.net:1234/-/user/org.couchdb.user:test
info retry will retry, error on last attempt: Error: certificate has expired

how to fix ....?

I tried..

npm config set strict-ssl false

I want it to be distributed with a single command.

"deploy": "rollup -c && npm run ssl-false && npm run login && npm run publish"

ParkBeomMin avatar Sep 15 '23 05:09 ParkBeomMin

node_modules\npm-registry-client\index.js

I found this code.

  this.config.ssl = this.config.ssl || {}
  if (this.config.ssl.strict === undefined) this.config.ssl.strict = true

how to change this value ?

ParkBeomMin avatar Sep 15 '23 06:09 ParkBeomMin