Problem error in patch d-danfe
I'm trying to do the npx patch-package d-danfe and I get this error:
npx patch-package d-danfe
npm WARN config global --global, --local are deprecated. Use --location=global instead.
patch-package 6.5.0
• Creating temporary folder
• Installing [email protected] with npm
• Diffing your files with clean files
Error: ENOENT: no such file or directory, scandir 'C:\Users\TECNOL~1\AppData\Local\Temp\tmp-190444nNSXAGP5h8c\node_modules\d-danfe'
at Object.readdirSync (node:fs:1405:3)
at Object.klawSync [as default] (C:\Users\tecnologia\Documents\Projetos\api_portalcli_macrolub\node_modules\klaw-sync\klaw-sync.js:13:25)
at Object.removeIgnoredFiles (C:\Users\tecnologia\Documents\Projetos\api_portalcli_macrolub\node_modules\patch-package\dist\filterFiles.js:11:24)
at Object.makePatch (C:\Users\tecnologia\Documents\Projetos\api_portalcli_macrolub\node_modules\patch-package\dist\makePatch.js:121:23)
at C:\Users\tecnologia\Documents\Projetos\api_portalcli_macrolub\node_modules\patch-package\dist\index.js:53:25
at Array.forEach (
Error: ENOENT: no such file or directory, scandir 'C:\Users\TECNOL~1\AppData\Local\Temp\tmp-190444nNSXAGP5h8c\node_modules\d-danfe'
at Object.readdirSync (node:fs:1405:3)
at Object.klawSync [as default] (C:\Users\tecnologia\Documents\Projetos\api_portalcli_macrolub\node_modules\klaw-sync\klaw-sync.js:13:25)
at Object.removeIgnoredFiles (C:\Users\tecnologia\Documents\Projetos\api_portalcli_macrolub\node_modules\patch-package\dist\filterFiles.js:11:24)
at Object.makePatch (C:\Users\tecnologia\Documents\Projetos\api_portalcli_macrolub\node_modules\patch-package\dist\makePatch.js:121:23)
at C:\Users\tecnologia\Documents\Projetos\api_portalcli_macrolub\node_modules\patch-package\dist\index.js:53:25
at Array.forEach (
this package in pacckage.json looks like this "d-danfe": "github:douglasselias/djf-danfe" I believe it is published in gitgub could that be why the problem? I tried the commands reported in the documentation but it didn't work.
If you can help me what can I do to fix it and be able to use your tool because it will help me a lot, thank you in advance for your help!.
I think patching individual packages is out of the scope for this repo.