Capacitor fails on New Mobile Project

Using Wappler 5.4.0 In new project to run Framework7 template with capacitor the terminal is showing …

Been happening for past 1/2 hour.

Checking NodeJS installation and version…
v19.6.0
NodeJS is correctly installed.

Checking Capacitor installation and version…
npm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY
npm ERR! errno UNABLE_TO_GET_ISSUER_CERT_LOCALLY
npm ERR! request to https://registry.npmjs.org/cap failed, reason: unable to get local issuer certificate

in the log file –

49 verbose stack FetchError: request to https://registry.npmjs.org/@capacitor%2Fcli failed, reason: unable to get local issuer certificate
49 verbose stack at ClientRequest. (/opt/homebrew/lib/node_modules/npm/node_modules/minipass-fetch/lib/index.js:130:14)
49 verbose stack at ClientRequest.emit (node:events:512:28)
49 verbose stack at TLSSocket.socketErrorListener (node:_http_client:496:9)
49 verbose stack at TLSSocket.emit (node:events:524:35)
49 verbose stack at emitErrorNT (node:internal/streams/destroy:151:8)
49 verbose stack at emitErrorCloseNT (node:internal/streams/destroy:116:3)
49 verbose stack at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
50 verbose cwd /Users/newm1/ios_wappler
51 verbose Darwin 22.2.0
52 verbose node v19.6.0
53 verbose npm v9.4.0
54 error code UNABLE_TO_GET_ISSUER_CERT_LOCALLY
55 error errno UNABLE_TO_GET_ISSUER_CERT_LOCALLY
56 error request to https://registry.npmjs.org/@capacitor%2Fcli failed, reason: unable to get local issuer certificate
57 verbose exit 1

See:

However, the links that the Wappler script was accessing to install the capacitor updates opened immediately when I checked them in the browser.

I am trying a new install on my Mac Intel core laptop at the moment.

Just as tip I would suggest to first install NodeJS and home brew according to their official sites and instructions under your administration count and terminal so that there are no permissions issues.

NodeJS LTS from

And Hombrew in a Mac terminal follow the instructions from:

I have done all that.

I have given up on the M1 Wappler install.

5.4.0 has caused issues that I will have to save for another day.

I went to my MacPro laptop with the last Intel core processor before M1. Updated it to latest Ventura 13.2. Had to upgrade my xcode version before Wappler finally gave me a green light in the full mobile target iOS project.

At the moment the intel core processor MacPro has completed the necessary components for a Wappler Mobile app setup.

This instruction from George works:

There seems to be some issues with the latest Ruby and Apple Quarantine.
To solve all homebrew Mac with Arm64 M1/M2 quarantine problems, open a terminal and run:
sudo xattr -rd com.apple.quarantine /opt/homebrew/Cellar
This will remove all quarantine warnings from the homebrew packages as those are safe to use.

I’m happy to report that after a lot of investigating and cooperation with the homebrew team, we found the right way to officially and secure install the needed components.

So starting from the next update, there will be no warnings that Apple cannot check this software and everything will install just fine.

1 Like

Congratulations George, it always feels good to clear a difficult issue! Thanks for sticking with it.

1 Like

Fixed in Wappler 5.4.1

This topic was automatically closed after 24 hours. New replies are no longer allowed.