Can I install npm packages?

Hello people

I am new to n8n,

Can I install npm packages ?
For example qrcode, report-generator …etc

Thank you

Hey @Omar_e,

Welcome to the community :tada:

You can install npm packages as community nodes or to be used in the function node but depending on how you are running n8n the process to install an npm package might be a bit more involved.

Thank you for the replay Jon

what do you mean by “a bit more involved”? Shouldn’t this be easy as I just need to import packges in js function node?

Hey @Omar_e,

Importing into a function node won’t install the npm package, Depending on how you are running n8n the steps will be different. For example if you are using docker you would need to make your own image that includes the npm package you want to use.