on 03-16-2023 7:27 AM
Hi,
I am following this tutorial :
https://developers.sap.com/tutorials/cp-cf-sapui5-local.html
The tool didn't create any file in the project directory, and it stop with this error :
MacBookPro2:Tutorial_4 fred$ yo easy-ui5 project<br> _-----_ <br> | | ╭──────────────────────────╮<br> |--(o)--| │ Welcome to the easy-ui5 │<br> `---------´ │ 3.5.1 generator! │<br> ( _´U`_ ) ╰──────────────────────────╯<br> /___A___\ /<br> | ~ | <br> __'.___.'__ <br> ´ ` |° ´ Y ` <br>(node:78268) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time<br>(Use `node --trace-warnings ...` to show where the warning was created)<br>? <strong>What do you want to do?</strong> Create a new OpenUI5/SAPUI5 project [app]<br>? <strong>How do you want to name this project?</strong> myUI5App<br>? <strong>Which namespace do you want to use?</strong> com.myorg<br>? <strong>Do you want to enable the SAP Fiori elements flexible programming model?</strong> No<br>? <strong>On which platform would you like to host the application?</strong> Application Router @ Cloud Foundry<br>? <strong>Which view type do you want to use?</strong> XML<br>? <strong>Where should your UI5 libs be served from?</strong> Content delivery network (SAPUI5)<br>? <strong>Would you like to create a new directory for the project?</strong> Yes<br>? <strong>Would you like to add JavaScript code assist libraries to the project?</strong> Yes<br>? <strong>Would you like to initialize a local git repository for the project?</strong> No<br> ⚠ ️ patched @sap-ux's MainViewController.js to use ./BaseController<br> ⚠ ️ patched @sap-ux's flpSandbox.html to boostrap only SAPUI5 (sap.ushell!)<br>used @sap-ux/fiori-freestyle-writer to generate freestyle app skeleton :)<br> ⚠ ️ patched @sap-ux's index.html with Content delivery network (SAPUI5)<br>configuring app router settings...<br>node:events:491<br> throw er; // Unhandled 'error' event<br> ^<br>Error: ENOENT: no such file or directory, scandir '/Users/fred/Documents/Development/Tutorial_4/com.myorg.myUI5App/uimodule/ui5-local.yaml'<br> at Object.readdirSync (node:fs:1451:3)<br> at exports.readdir (/usr/local/lib/node_modules/generator-easy-ui5/plugin-generators/generator-ui5-project/node_modules/@mrmlnc/readdir-enhanced/lib/sync/fs.js:18:20)<br> at Object.safeCall [as safe] (/usr/local/lib/node_modules/generator-easy-ui5/plugin-generators/generator-ui5-project/node_modules/@mrmlnc/readdir-enhanced/lib/call.js:24:8)<br> at DirectoryReader.readNextDirectory (/usr/local/lib/node_modules/generator-easy-ui5/plugin-generators/generator-ui5-project/node_modules/@mrmlnc/readdir-enhanced/lib/directory-reader.js:78:10)<br> at DirectoryReader.stream._read (/usr/local/lib/node_modules/generator-easy-ui5/plugin-generators/generator-ui5-project/node_modules/@mrmlnc/readdir-enhanced/lib/directory-reader.js:57:18)<br> at Readable.read (node:internal/streams/readable:496:12)<br> at readdirSync (/usr/local/lib/node_modules/generator-easy-ui5/plugin-generators/generator-ui5-project/node_modules/@mrmlnc/readdir-enhanced/lib/sync/index.js:27:21)<br> at Function.readdirSyncStat (/usr/local/lib/node_modules/generator-easy-ui5/plugin-generators/generator-ui5-project/node_modules/@mrmlnc/readdir-enhanced/lib/index.js:34:10)<br> at ReaderSync.dynamicApi (/usr/local/lib/node_modules/generator-easy-ui5/plugin-generators/generator-ui5-project/node_modules/yeoman-generator/node_modules/fast-glob/out/providers/reader-sync.js:64:24)<br> at ReaderSync.api (/usr/local/lib/node_modules/generator-easy-ui5/plugin-generators/generator-ui5-project/node_modules/yeoman-generator/node_modules/fast-glob/out/providers/reader-sync.js:56:25)<br>Emitted 'error' event on Readable instance at:<br> at emitErrorNT (node:internal/streams/destroy:151:8)<br> at emitErrorCloseNT (node:internal/streams/destroy:116:3)<br> at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {<br> errno: -2,<br> syscall: 'scandir',<br> code: 'ENOENT',<br> path: '/Users/fred/Documents/Development/Tutorial_4/com.myorg.myUI5App/uimodule/ui5-local.yaml'<br>}<br>Node.js v18.12.1
I have re-install the yo, the generator, ... The check of Yo works well :
MacBookPro2:Tutorial_4 fred$ yo doctor
Yeoman Doctor
Running sanity checks on your system
✔ No .bowerrc file in home directory
✔ Global configuration file is valid
✔ NODE_PATH matches the npm root
✔ No .yo-rc.json file in home directory
✔ Node.js version
✔ npm version
✔ yo version
Everything looks all right!
nicolai.geburek - It means we can't use generator-easy-ui5 in Business Application studio. Currently the nodejs version is v18.14.3 and the problem persists. You mentioned to use nodejs v14 or v16. Do we need to install nodejs v16 into environment? Are we allowed to do that in BAS?
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
8 | |
8 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.