We are trying to get the PDF js annotations to work. I tried downloading the sourcecode at GitHub - pdfjs-express/custom-annotation-samples: A repo containing examples on creating custom annotations but I keep getting below error.
I may be missing some steps or doing something wrong, I followed the steps on the readme file. I would really appreciate if someone can help me with more detailed steps or help troubleshooting.
custom-annotation-samples@1.0.0 copy C:\Users\xxxx\Downloads\custom-annotation-samples-master\custom-annotation-samples-master
cross-env rm -rf static/lib && cp -a node_modules/@pdftron/pdfjs-express/public/. static/lib && cp -a node_modules/@pdftron/pdfjs-express/webviewer.min.js static/lib/webviewer.min.js
‘rm’ is not recognized as an internal or external command,
operable program or batch file.
events.js:291
throw er; // Unhandled ‘error’ event
^
Error: spawn rm ENOENT
at notFoundError (C:\Users\xxxx\Downloads\custom-annotation-samples-master\custom-annotation-samples-master\node_modules\cross-spawn\lib\enoent.js:6:26)
at verifyENOENT (C:\Users\xxxx\Downloads\custom-annotation-samples-master\custom-annotation-samples-master\node_modules\cross-spawn\lib\enoent.js:40:16)
at ChildProcess.cp.emit (C:\Users\xxxx\Downloads\custom-annotation-samples-master\custom-annotation-samples-master\node_modules\cross-spawn\lib\enoent.js:27:25)
at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
Emitted ‘error’ event on ChildProcess instance at:
at ChildProcess.cp.emit (C:\Users\xxxx\Downloads\custom-annotation-samples-master\custom-annotation-samples-master\node_modules\cross-spawn\lib\enoent.js:30:37)
at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) {
code: ‘ENOENT’,
errno: ‘ENOENT’,
syscall: ‘spawn rm’,
path: ‘rm’,
spawnargs: [ ‘-rf’, ‘static/lib’ ]
}