Reputation: 11
I tried to install the following and got the following error.
npm install @sap/cloud-sdk-op-vdm-material-stock-service
npm ERR! code CERT_HAS_EXPIRED
npm ERR! errno CERT_HAS_EXPIRED
npm ERR! request to https://npm.sap.com/@sap%2fcloud-sdk-op-vdm-material-stock-service failed, reason: certificate has expired
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\**\AppData\Local\npm-cache\_logs\2022-05-22T12_29_49_566Z-debug.log
Any common reason.
Upvotes: 1
Views: 5912
Reputation: 374
The error message is about the registry https://npm.sap.com/
you used.
You can run the command to switch to public npm registry:
npm config set registry http://registry.npmjs.org/
Maybe you can also check your .npmrc
file and remove all registry configuration related to the https://npm.sap.com/
.
By default, you should then use the public registry http://registry.npmjs.org/
.
Upvotes: 4