Resolve cp Not Recognized Error in Angular PDF Viewer
14 Aug 20261 minute to read
The Unix copy command is not available in the Windows Command Prompt. Use the Windows-native copy command to copy files and directories. The equivalent command in Windows to copy a directory and its contents recursively is:
xcopy /s /e /i .\node_modules\@syncfusion\ej2-pdfviewer\dist\ej2-pdfviewer-lib src\assets\ej2-pdfviewer-libHere, /s indicates that you want to copy directories and subdirectories recursively. Also, note that Windows uses backslashes \ as path separators, not forward slashes /.
Make sure to run this command in the appropriate directory where you want to perform the copy operation.
If you encounter other issues or error messages while working with the Windows Command Prompt, make sure to double-check your command syntax and file paths for accuracy. Additionally, ensure that you have the necessary permissions to perform the copy operation in the specified directories.