Skip to content

Commit

Permalink
Fix: @cap-js-community/odata-v2-adapter Error: ENOENT: no such file o…
Browse files Browse the repository at this point in the history
…r directory (#216)

Set environment variable TMP used by @cap-js-community/odata-v2-adapter to cache models

Fix #215
  • Loading branch information
vl-leon authored Jul 23, 2024
1 parent ddcda96 commit 3d550ae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/startProcess.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ async function startProcess(params={}) {
if(!env.CDS_CONFIG)
options.env.CDS_CONFIG=`{"preview": {"ui5": { "host": "/" } } }`;
params=Object.assign(params, createWorkingDirectory());
if(isUnixOS)
if(isUnixOS) {
options.env.HOME=params.workingDirectory;
else
options.env.TMP=params.workingDirectory;
} else
options.env.USERPROFILE=params.workingDirectory;
let libInfo = {};
if(env.CDS_CUCUMBER_DEBUG==='1')
Expand Down

0 comments on commit 3d550ae

Please sign in to comment.