on 2021 Apr 19 7:18 AM
Hello Team,
I am facing issue in SAP Web ide , build is getting failed, it shows below error in console.
npm ERR! code CERT_HAS_EXPIRED
npm ERR! errno CERT_HAS_EXPIRED
npm ERR! request to https://npm.sap.com/@sap/di.code-validation.js/-/di.code-validation.js-1.1.6.tgz failed, reason: certificate has expired
npm ERR! A complete log of this run can be found in:
npm ERR! /mnt/npm_cache/_logs/2021-04-19T04_13_12_853Z-debug.log
9:43:15 AM (DIBuild)
UI5 Build failed.
.
[INFO] Build finished in 39 seconds Kindly provide your assistance.Best RegardsDeepa Kalyani
This is because npm expired registry has expired/moved, and it's now replace it with NPM Registry.
npm config list -> locate the .npmrc file -> open the file using notepad -> change the path
from @sap:registry = "https://npm.sap.com" to @sap:registry=https://registry.npmjs.org/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello All,
Below solution worked for me :
Deleted package-lock.json, npmrc & gruntfile.js files from project.
And added UI5.yaml file as per below blog and it resolved our issue.
Updating Your Project's Grunt Build to the UI5 Build | SAP Help Portal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi all, please provide your inputs to solve this :
INFO] npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
[INFO] npm ERR! Cannot read property 'resolve' of undefined
[INFO]
[INFO] npm ERR! A complete log of this run can be found in:
[INFO] npm ERR! C:\Users\kchheda\AppData\Roaming\npm-cache\_logs\2022-07-19T17_17_37_180Z-debug.log
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.9.1:npm (npm install) on project supplierportal: Failed to run task: 'npm install' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [Help 1]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Right click on your project on web ide and go to New -> File
Enter the file name: user.npmrc
Add this line to the file:
@sap:registry=https://registry.npmjs.org/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
See this OSS note https://userapps.support.sap.com/sap/support/knowledge/en/3046586
npm expired registry has expired/moved, replace it with NPM Registry
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is this resolved? we are facing similar issue..
npm ERR! code CERT_HAS_EXPIRED
npm ERR! errno CERT_HAS_EXPIRED
npm ERR! request to https://npm.sap.com/@sap%2fgrunt-sapui5-bestpractice-build failed, reason: certificate has expired
##[error]PowerShell exited with code '1'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
is this resolved?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
8 | |
8 | |
7 | |
4 | |
4 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.