Closed
Description
What / Why
Trying to run npm install on an AWS EC2 Amazon Linux instance, it fails.
When
- Whenever I run
npm install
on an AWS EC2 Amazon Linux instance.
Where
- On an AWS EC2 Amazon Linux instance
How
Current Behavior
npm install
fails
[ec2-user@ip-172-31-34-238 ondeck]$ sudo npm install
npm http GET https://registry.npmjs.org/sass-loader
npm http GET https://registry.npmjs.org/sass-loader
npm http GET https://registry.npmjs.org/sass-loader
npm ERR! Error: UNABLE_TO_GET_ISSUER_CERT_LOCALLY
npm ERR! at SecurePair.<anonymous> (tls.js:1430:32)
npm ERR! at SecurePair.emit (events.js:92:17)
npm ERR! at SecurePair.maybeInitFinished (tls.js:1029:10)
npm ERR! at CleartextStream.read [as _read] (tls.js:521:13)
npm ERR! at CleartextStream.Readable.read (_stream_readable.js:341:10)
npm ERR! at EncryptedStream.write [as _write] (tls.js:418:25)
npm ERR! at doWrite (_stream_writable.js:226:10)
npm ERR! at writeOrBuffer (_stream_writable.js:216:5)
npm ERR! at EncryptedStream.Writable.write (_stream_writable.js:183:11)
npm ERR! at write (_stream_readable.js:602:24)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-@googlegroups.com>
npm ERR! System Linux 4.14.146-93.123.amzn1.x86_64
npm ERR! command "node" "/usr/bin/npm" "install"
npm ERR! cwd /var/app/ondeck
npm ERR! node -v v0.10.48
npm ERR! npm -v 1.3.6
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /var/app/ondeck/npm-debug.log
npm ERR! not ok code 0
Steps to Reproduce
npm install
Expected Behavior
- It should install
Who
- Me
- Anyone
References
- SSL Error: CERT_UNTRUSTED npm#20191
- https://stackoverflow.com/questions/54129556/installing-nvm-in-aws-error-unable-to-get-issuer-cert-locally
- https://stackoverflow.com/questions/52707801/npm-giving-unable-to-get-issuer-cert-locally
- https://stackoverflow.com/questions/39764302/npm-throws-error-unable-to-get-issuer-cert-locally-while-installing-any-package
- https://stackoverflow.com/questions/30651407/nodejs-https-request-unable-to-get-issuer-cert-locally
- https://stackoverflow.com/questions/49696439/error-unable-to-get-issuer-cert-locally-installing-heroku
Metadata
Metadata
Assignees
Labels
No labels