Issue
The following error appears when installing an npm module for NodeJS on CloudLinux:
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/gulp-cli failed, reason: unable to get local issuer certificate
Or:
verbose stack FetchError: request to https://registry.npmjs.org/@hookform%2fresolvers failed, reason: unable to get local issuer certificate
error request to https://registry.npmjs.org/@hookform%2fresolvers failed, reason: unable to get local issuer certificate
Environment
- CloudLinux
- NodeJS v.18, v19, v20
- alt-nodejs18-openssl < 1.1.1p-3
Solution
Install the latest alt-nodejs
updates:
# yum update alt-nodejsXX* --enablerepo=cloudlinux-updates-testing
Where XX should be replaced with the required NodeJS version number
Cause
Outdated version
Useful links
https://changelog.cloudlinux.com/search?value=ALTNJS-123
Comments
0 comments
Please sign in to leave a comment.