TobiasMende / n8n-nodes-calcarddav

Use WebDAV, CalDAV and CardDAV APIs from N8N
MIT License
1 stars 2 forks source link

wont install #1

Open unclesam87 opened 1 week ago

unclesam87 commented 1 week ago

Greetings, i was pretty happy to see ur nodes, sadly it wont install:

Error loading package "n8n-nodes-calcarddav" :The specified package could not be loaded Cause: Cannot find module '/home/node/.n8n/nodes/node_modules/n8n-nodes-calcarddav/dist/nodes/CardDavNode/CardDaveNode.node.js' Require stack: - /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/ClassLoader.js - /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/index.js - /usr/local/lib/node_modules/n8n/dist/config/schema.js - /usr/local/lib/node_modules/n8n/dist/config/index.js - /usr/local/lib/node_modules/n8n/dist/commands/audit.js - /usr/local/lib/node_modules/n8n/node_modules/@oclif/core/lib/module-loader.js - /usr/local/lib/node_modules/n8n/node_modules/@oclif/core/lib/help/index.js - /usr/local/lib/node_modules/n8n/node_modules/@oclif/core/lib/errors/handle.js - /usr/local/lib/node_modules/n8n/node_modules/@oclif/core/lib/errors/index.js - /usr/local/lib/node_modules/n8n/node_modules/@oclif/core/lib/config/config.js - /usr/local/lib/node_modules/n8n/node_modules/@oclif/core/lib/config/index.js - /usr/local/lib/node_modules/n8n/node_modules/@oclif/core/lib/command.js - /usr/local/lib/node_modules/n8n/node_modules/@oclif/core/lib/index.js

any ideas what i can do?

unclesam87 commented 1 week ago

okay.... a short peek on the error message would helped: the CardDavNode/CardDaveNode.node.js seems to have a typo: inside our CardDavNode Folder i only see an carddavnode.node.js (at least on npm)

edit: look here inside of https://github.com/TobiasMende/n8n-nodes-calcarddav/blob/main/package.json line 36 "nodes": [ "dist/nodes/CardDavNode/CardDaveNode.node.js" ]

TobiasMende commented 1 week ago

Hi @unclesam87, unfortunately I never got to really build this node, but just played around here. So it is not functional yet and this is likely only the first error to encounter.

I will update the README to make this clear. Unfortunately I do not have the capacity to build it to a point where it works.

Depending on what you need, a workaround for your use case might be to create the vcf file content by hand (Set Field Node or Code Node)

ChatGPT might help with the boilerplate template of the file content (vcf files are text files)