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
npm i
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
Now you have it installed you can try installing your other package. Maybe doing a -g on it would help but n8n is working now which is perfect so you have a clean base to start working from.
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’
after installing pnpm the installation success to finish, but after that, if I want to import workflow I get an error message that commands import:workflow not found
When you uses pnpm did you follow the steps we recommend or try your own?
With pnpm it would first be an install then a build so it would be worth making sure that was done.
I am not actually sure why there are so many issues but I also don’t tend to use external node packages so it could be that something is missing there.
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.