Describe the problem/error/question
I am trying to develop a custom node. As such, I am following the youtube tutorial and the docs from n8n.
I have cloned the n8n-nodes-starter repo named as n8n-my-nodes into a windows directory.
I have installed n8n version 1.9.0 specifically to follow exactly the directives in the youtube tutorial (I have also tried with lts) like this:
npm install [email protected] -g
after:
npm list -g
this is the output:
C:\Users\aprestamo\AppData\Roaming\npm
+-- [email protected]
+-- [email protected]
`-- [email protected]
I tested n8n server and it works good.
Then I navigated into n8n-my-nodes and executed:
npm install
which outputed the following:
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: [email protected]
npm WARN Found: [email protected]
npm WARN node_modules/n8n/node_modules/n8n-nodes-base
npm WARN n8n-nodes-base@"1.9.3" from [email protected]
npm WARN node_modules/n8n
npm WARN n8n@"^1.9.0" from the root project
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer n8n-nodes-base@"1.9.2" from [email protected]
npm WARN node_modules/n8n/node_modules/n8n-core
npm WARN n8n-core@"1.9.1" from [email protected]
npm WARN node_modules/n8n
npm WARN
npm WARN Conflicting peer dependency: [email protected]
npm WARN node_modules/n8n-nodes-base
npm WARN peer n8n-nodes-base@"1.9.2" from [email protected]
npm WARN node_modules/n8n/node_modules/n8n-core
npm WARN n8n-core@"1.9.1" from [email protected]
npm WARN node_modules/n8n
npm WARN deprecated [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: Please switch to @apidevtools/json-schema-ref-parser
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated [email protected]: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated @oclif/[email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated [email protected]: dommatrix is no longer maintained. Please use @thednp/dommatrix.
npm WARN deprecated @oclif/[email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated @oclif/[email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated @oclif/[email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated @oclif/[email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated @oclif/[email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
I then reinstalled with flag --legacy-peer-deps with no warnings other that the deprecated ones.
after this, I executed the following command insde n8n-my-nodes folder:
npm link
This outputed no errors, and 1 package added.
after executing:
npm list -g
it outputed
C:\Users\aprestamo\AppData\Roaming\npm
+-- [email protected] -> .\..\..\..\Documents\repos\n8n-my-nodes
+-- [email protected]
+-- [email protected]
`-- [email protected]
now i navigate to C:\Users\aprestamo\AppData\Roaming\npm\node_modules\n8n
and execute:
npm link n8n-my-nodes
this outputs some warnings related to deprecated
I start my n8n instance again with
n8n start
i reload editor and i cant see the example nodes.
i execute npm list (inside the n8n folder):
which outputed some packages. I will show a fragment of the output, where the n8n-my-nodes is displayed:
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected] extraneous -> .\..\..\..\..\..\Documents\repos\n8n-my-nodes
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
What is wrong?
node version:
v18.18.2
npm version:
10.2.0
n8n version installed with npm:
1.9.0