Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

ERR_TLS_CERT_ALTNAME_INVALID when doing npm i #382

Open
Abernachy opened this issue Apr 8, 2022 · 2 comments
Open

ERR_TLS_CERT_ALTNAME_INVALID when doing npm i #382

Abernachy opened this issue Apr 8, 2022 · 2 comments

Comments

@Abernachy
Copy link
Contributor

Abernachy commented Apr 8, 2022

Hey, just like a heads up, when going through the Serverless stuff, forking and attempting to install the node modules for course4 exercises gives you an error.
image

The reason is because its attempting to snag the AWS, axios, and other packages from the nexus solutions url in the package-lock file., which doesn't work. To fix this on my end, I deleted the package-json and then removed the aws-sdk dependency from the package.json file. Then I just ran 'npm i aws-sdk' which installed the 2.11100 version. Then I ran 'npm i' to install the other packages and their dependencies and to have it auto generate a new package-lock.json file and voila, everything works now.

If you just try to edit the package.json file and add the 2.1110 as the aws-sdk version it will still error out because the other packages in package-lock are pointing to the nexus solutions endpoints rather than npm endpoints.

@ifyoma
Copy link

ifyoma commented May 31, 2022

woow thanks alot for this

@SudKul
Copy link
Contributor

SudKul commented Jun 3, 2022

Thanks, @Abernachy
It's a smart choice to delete the package-lock.json and recreate a new one specifically for your platform.
I think you have fixed this in #384, right?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants