Building n8n master from GitHub

Hi all,

I’m currently trying to get my head around n8n and add Campaign Monitor as one of the nodes.

I have had numerous issues trying to get n8n master building. I’m on MacOSX, latest node v16 although I use NVM and after a bit of digging, I have settled on v15.14.0 LTS.

It took me a while to get through each project and one by one getting it building due to missing dependencies (yes aware of Lerna). I think there is a lot of assumption as to what should already be pre-installed globally. I have found the following dependencies missing from packages.json files.

main repo:

  • run-script-os

cli

  • node
  • jest

core

  • cross-env

node-dev

  • @types/request-promise-native
  • node

nodes-base

  • jest
  • node

workflow

  • jest
  • node

I had to install globally typescript~3.9.7 and had to set npm config set legacy-peer-deps true before getting lerna bootstrap going.

Hey @lemining!

Welcome to the community :sparkling_heart:

Thank you for bringing this up. I am sorry you had issues getting started. I am assigning this to @RicardoE105 who knows more about the development and can share some more information.

Not a problem at all.

All part of the learning. Let me know if you want me to submit a PR or something for my changes.

Likely related to your Node version. Right now we officially support Node.js v14 with npm v6.

1 Like

Ok, I’ll downgrade to (lts/fermium -> v14.17.3).

As for the missing dependencies - they aren’t related to the node version. They are still missing when install fresh node/npm 14.17.3 as they aren’t in the packages yet required.