Ignite UI CLI Version
15.2.2
Framework
jQuery
CLI Command
new
Node.js Version
20.11.0
Operating System
Windows
Package Manager
npm
Description
When creating a jQuery project using the infragistics.less theme, the build fails while copying theme assets.
The CLI tries to copy the images directory using fs.copyFileSync, which only works for files, not directories.
Steps to Reproduce
- Run ig new.
- Choose jQuery.
- Choose the infragistics.less theme.
- Select Complete & Run, or run ig start after project creation.
Actual Result
The build fails because the CLI attempts to copy a directory as a file.
Expected Result
The project should build successfully and copy all theme assets, including nested directories such as images.
Error Output / Logs
The new command threw error - Error
Message: EPERM: operation not permitted, copyfile 'C:\Work\1cli-tests\jquer\node_modules\ignite-ui\css\themes\infragistics\images' -> 'C:\Work\1cli-tests\jquer\themes\images'
Stack: Error: EPERM: operation not permitted, copyfile 'C:\Work\1cli-tests\jquer\node_modules\ignite-ui\css\themes\infragistics\images' -> 'C:\Work\1cli-tests\jquer\themes\images'
at Object.copyFileSync (node:fs:3086:11)
at C:\Users\ganastasov\AppData\Roaming\npm\node_modules\igniteui-cli\lib\commands\build.js:83:24
at Array.forEach (<anonymous>)
at Object.<anonymous> (C:\Users\ganastasov\AppData\Roaming\npm\node_modules\igniteui-cli\lib\commands\build.js:80:25)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\ganastasov\AppData\Roaming\npm\node_modules\igniteui-cli\lib\commands\build.js:28:58)
Additional Context

Ignite UI CLI Version
15.2.2
Framework
jQuery
CLI Command
new
Node.js Version
20.11.0
Operating System
Windows
Package Manager
npm
Description
When creating a jQuery project using the
infragistics.lesstheme, the build fails while copying theme assets.The CLI tries to copy the
imagesdirectory usingfs.copyFileSync, which only works for files, not directories.Steps to Reproduce
Actual Result
The build fails because the CLI attempts to copy a directory as a file.
Expected Result
The project should build successfully and copy all theme assets, including nested directories such as images.
Error Output / Logs
Additional Context