I build a process in nodejs the clone n8n and build I have problem with lerna I didn’t make any change in my side, the process is this :
git clone --branch [email protected]
npm install --global [email protected]
inside n8n folder run:
git reset --hard
git clean -dfx
lerna bootstrap --hoist
npm run build
npm run start
I would recommend using the latest version as we probably won’t go back to fix a bug with the older release.
I am not sure why you have the npm i in the command list though, I think the lerna command did all of that so you didn’t need to so it could be that by doing this it has broken something. I would do the reset again and this time don’t do the npm i and see if that helps.
it works but now I miss some packages that I need to use, for example, I create a custom module with functions that I want to access through the nodes(function node) another example I need this package
1)after I install my package globally when I make require(''my-package")
I get an error that does not find the module
2)then I try to install my package In n8n locally, after that when I try to run “npm run start” to start n8n I get error Error: Cannot find module ‘@oclif/command’
I take it as you missed the build step you have not been following the documentation on our GitHub repo for contributing? This covers how you can get up and running from Git but I suspect you may still see the same issue.