SAP Knowledge Base Article - Preview

3403560 - SAP Web IDE build error - Fatal error: Unable to find local grunt

Symptom

In SAP Web IDE Full-Stack a SAPUI5 application build fails with such error:

2:18:56 PM (DIBuild) [INFO] Retrieving source code[INFO] Installing node dependencies

2:19:01 PM (DIBuild) 
npm WARN deprecated grunt-openui5@0.18.1: grunt-openui5 has been deprecated: https://github.com/SAP-archive/grunt-openui5#deprecatedUnhandled rejection Error: ENOENT: no such file or directory, rename '/usr/sap/ljs/permanent_storage/uml_data/direct_shared_cache/1700462877671_911574887237754223/_cacache/tmp/f7592539' -> ...
npm WARN notice [SECURITY] grunt has the following vulnerabilities: 1 high, 1 moderate. Go here for more details: https://github.com/advisories?query=grunt - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated connect-openui5@0.10.3: connect-openui5 has been deprecated: https://github.com/SAP-archive/connect-openui5#deprecatedUnhandled rejection Error: ENOENT: no such file or directory, rename '/usr/sap/ljs/permanent_storage/uml_data/direct_shared_cache/1700462877671_911574887237754223/_cacache/tmp/c4c8908b' -> ...

2:19:03 PM (DIBuild) 
npm WARN deprecated multiline@2.0.0: This was a fun hack, but now we have template literals, so use that instead.Unhandled rejection Error: ENOENT: no such file or directory, rename '/usr/sap/ljs/permanent_storage/uml_data/direct_shared_cache/1700462877671_911574887237754223/_cacache/tmp/f7ecf7ab' -> '/usr/sap/ljs/permanent_storage/uml_data/direct_shared_cache/1700462877671_911574887237754223/_cacache/content-v2/sha512/e0/65/2dde4484626938213c7307f6fdbda2037d455637f325d45c25d752259c81b689a27d3ba59767d4ab60cf4d2c8f0e08189e37663c4960b6a09574450eea62'
npm WARN notice [SECURITY] @xmldom/xmldom has the following vulnerability: 1 critical. Go here for more details: https://github.com/advisories?query=%40xmldom%2Fxmldom - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.Unhandled rejection Error: ENOENT: no such file or directory, rename '/usr/sap/ljs/permanent_storage/uml_data/direct_shared_cache/1700462877671_911574887237754223/_cacache/tmp/9acb64e4' -> ...

2:19:05 PM (DIBuild) Unhandled rejection Error: ENOENT: no such file or directory, rename '/usr/sap/ljs/permanent_storage/uml_data/direct_shared_cache/1700462877671_911574887237754223/_cacache/tmp/1d240fe0' -> ...
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://github.com/npm/npm/issues>
npm ERR! A complete log of this run can be found in:
npm ERR!     /usr/sap/ljs/permanent_storage/uml_data/direct_shared_cache/1700462877671_911574887237754223/_logs/2023-11-20T13_18_58_292Z-debug.log
npm ERR! cipm can only install packages with an existing package-lock.json or npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or later to generate it, then try again.
npm ERR! A complete log of this run can be found in:
npm ERR!     

[INFO] Invoking gruntgrunt-cli: The grunt command line interface (v1.2.0)

Fatal error: Unable to find local grunt.

If you're seeing this message, grunt hasn't been installed locally to your project. For more information about installing and configuring grunt,

please see the Getting Started guide:

http://gruntjs.com/getting-started

[INFO] Build finished in 9 seconds


Read more...

Environment

SAP Web IDE Full-Stack with Grunt build configuration.

Product

SAP Cloud Platform Web IDE 2.0

Keywords

KBA , CA-WDE-BLD-UI5 , SAP Web IDE Extension for UI5 Builder , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.