I am facing the following error. It is using NWjs and the command I am using to build is:
npx nwbuild ./* --mode=run --version=latest --flavor=sdk
I am using volta node version manager and the nodejs version is set according to NW.js version I have:
SystemError [ERR_FS_EISDIR]: Path is a directory: cp returned EISDIR (./cache is a directory (not copied)) ./cache
at getStatsForCopy (node:internal/fs/cp/cp:200:11)
at async build (file:///media/Data/newApp/new%20Desktop%20app/node_modules/nw-builder/src/bld/build.js:42:5)
at async nwbuild (file:///media/Data/newApp/new%20Desktop%20app/node_modules/nw-builder/src/nwbuild.js:212:7) {
code: 'ERR_FS_EISDIR',
info: {
message: './cache is a directory (not copied)',
path: './cache',
syscall: 'cp',
errno: 21,
code: 'EISDIR'
},
errno: [Getter/Setter],
syscall: [Getter/Setter],
path: [Getter/Setter],
level: 'error',
timestamp: '2024-07-06T10:03:48.544Z',
[Symbol(level)]: 'error',
[Symbol(message)]: '[ ERROR ] 2024-07-06T10:03:48.544Z Path is a directory: cp returned EISDIR (./cache is a directory (not copied)) ./cache'
}
Node.js v22.2.0
Here is the directory structure:
Please help!