Devlink error due to unable to get local issuer certificate

Hi team, I am trying to use the webflow devllink to export my existing site to next.js components.
I follow the docs:

  1. npm i @webflow/webflow-cli
  2. create .webflowrc.js under root directory with new API token.
  3. run npx webflow devlink sync
    but when I run the last command: run npx webflow devlink sync

I have the following errors:

ERROR: Something went wrong while trying to export your components: request to https://api.webflow.com/devlink/65e3e4ce61f082ea126a6df8/engine failed, reason: unable to get local issuer certificate
FetchError: request to https://api.webflow.com/devlink/65e3e4ce61f082ea126a6df8/engine failed, reason: unable to get local issuer certificate
at ClientRequest. (/pathi/dist/index.js:946:16597)
at ClientRequest.emit (node:events:514:28)
at TLSSocket.socketErrorListener (node:_http_client:495:9)
at TLSSocket.emit (node:events:514:28)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
fg [FetchError]: request to https://api.webflow.com/devlink/65e3e4ce61f082ea126a6df8/engine failed, reason: unable to get local issuer certificate
at ClientRequest. (/path/@webflow/webflow-cli/dist/index.js:946:16597)
at ClientRequest.emit (node:events:514:28)
at TLSSocket.socketErrorListener (node:_http_client:495:9)
at TLSSocket.emit (node:events:514:28)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
type: ‘system’,
errno: ‘UNABLE_TO_GET_ISSUER_CERT_LOCALLY’,
code: ‘UNABLE_TO_GET_ISSUER_CERT_LOCALLY’
}
Sending crash report telemetry…

Do you have any suggestions? Thanks. BTW, I am working within company VPN.

Hey @Arthur_Huang, Welcome to the forum!

You can find more info and links to report issues with DevLink here: Guide to DevLink