This version is modified to provide pagination on the products. This pagination is presented as N8N items. Or the response error.
You need the following installed on your development machine:
- git
- Node.js and npm. Check n8n first for best node version to use.
- Install n8n with:
npm install n8n -g
- Recommended: follow n8n's guide to set up your development environment.
Consider using NVM to manage node versions and use the
reinstall-packages
feature
- go to N8N settings
- go to communities nodes
- install the node with the name of
@flagbit/n8n-nodes-akeneo
- example
These are the basic steps for working locally without using the NPM version.
- Clone the repo:
git clone https://github.com/flagbit/akeneo-node-n8n.git
- Run
npm i
to install dependencies. - in the other terminal navigate to: C:\Users{user}\AppData\Roaming\npm\node_modules\n8n. Or, wherever your global
node_modules
are (usenpm -t
to find out) - Run
npm link @flagbit/n8n-nodes-akeneo
- To start n8n Run
n8n start
You will need pm2 (npm i pm2 -g
)
We use pm2 as it makes stopping n8n easier, otherwise you need to look up process ids etc. Also, it is cool.
Start n8n using pm2: pm2 start n8n
When you need to rebuild use: npm run exp
This will trigger the akeneo node compilation, then restart the local n8n instance.
When you have finished, you can use pm to stop n8n: pm2 stop n8n
You can use
pm2 log n8n
to see your local port number. Knowing this makes it easier to find the local site, or find out why it doesn't work
Refer to our documentation on creating nodes for detailed information on building your own nodes.