Hi, when I try to install the node "@apify/n8n-nodes-apify". I get the errors. It has happened since I upgraded to version 2.0-2.1. How to fix it?

hi,
when I try to install the node “@apify/n8n-nodes-apify”. I get the errors. It has happened since I upgraded to version 2.0-2.1. How to fix it?

This issue happens because n8n v2.x changed how custom nodes are installed, and some older nodes like @apify/n8n-nodes-apify may not be fully compatible with v2.x.

Try this out

Use npm to install the node in your n8n project folder:

npm install @apify/n8n-nodes-apify

Then restart n8n

Check compatibility: Make sure you’re using a version of @apify/n8n-nodes-apify that supports n8n v2.x. Upgrade the node if needed:

npm update @apify/n8n-nodes-apify

Clear node_modules and rebuild if errors persist:

rm -rf node_modules package-lock.json
npm install