Hello I just started to create nodes to help at my scale the development of n8n. To start I followed the tutorial proposed on Creating Your First Node | Docs
But here it does not work when compiling and launching n8n. Here is the error on my terminal:
PS E:\ordinateur\n8n node\n8n> npm run build
> build
> lerna exec npm run build
lerna notice cli v4.0.0
lerna info versioning independent
lerna info Executing command in 6 packages: "npm run build"
> n8n-workflow@0.56.0 build
> tsc
> n8n-node-dev@0.11.0 build
> tsc
error TS2688: Cannot find type definition file for 'node'.
The file is in the program because:
Entry point of type library 'node' specified in compilerOptions
7 "node"
~~~~~~
File is entry point of type library specified here.
Found 1 error.
lerna ERR! npm run build exited 2 in 'n8n-node-dev'
lerna ERR! npm run build exited 2 in 'n8n-node-dev'
lerna WARN complete Waiting for 1 child process to exit. CTRL-C to exit immediately.
PS E:\ordinateur\n8n node\n8n> npm run dev
> dev
> lerna exec npm run dev --parallel
error TS2688: Cannot find type definition file for 'jest'.
The file is in the program because:
Entry point of type library 'jest' specified in compilerOptions
tsconfig.json:9:4
9 "jest"
~~~~~~
File is entry point of type library specified here.
error TS2688: Cannot find type definition file for 'node'.
The file is in the program because:
Entry point of type library 'node' specified in compilerOptions
tsconfig.json:8:4
8 "node",
~~~~~~
File is entry point of type library specified here.
Found 2 errors.
lerna notice cli v4.0.0
lerna info versioning independent
lerna info Executing command in 6 packages: "npm run dev"
n8n-core: > n8n-core@0.68.0 dev
n8n-core: > npm run watch
n8n-editor-ui: > n8n-editor-ui@0.86.0 dev
n8n-editor-ui: > npm run serve
n8n-workflow: > n8n-workflow@0.56.0 dev
n8n-workflow: > npm run watch
n8n-nodes-base: > n8n-nodes-base@0.113.1 dev
n8n-nodes-base: > npm run watch
n8n: > n8n@0.116.1 dev
n8n: > concurrently -k -n "TypeScript,Node" -c "yellow.bold,cyan.bold" "npm run watch" "nodemon"
n8n-node-dev: > n8n-node-dev@0.11.0 dev
n8n-node-dev: > npm run watch
n8n: 'concurrently' n'est pas reconnu en tant que commande interne
n8n: ou externe, un programme ex�cutable ou un fichier de commandes.
lerna ERR! npm run dev exited 1 in 'n8n'
lerna ERR! npm run dev stdout:
> n8n@0.116.1 dev
> concurrently -k -n "TypeScript,Node" -c "yellow.bold,cyan.bold" "npm run watch" "nodemon"
lerna ERR! npm run dev stderr:
'concurrently' n'est pas reconnu en tant que commande interne
ou externe, un programme ex�cutable ou un fichier de commandes.
lerna ERR! npm run dev exited 1 in 'n8n'
lerna WARN complete Waiting for 5 child processes to exit. CTRL-C to exit immediately.
PS E:\ordinateur\n8n node\n8n>
Windows PowerShell
Copyright (C) Microsoft Corporation. Tous droits réservés.
Testez le nouveau système multiplateforme PowerShell https://aka.ms/pscore6
Cloning into 'n8n'...
remote: Enumerating objects: 37355, done.
remote: Counting objects: 100% (3793/3793), done.
remote: Compressing objects: 100% (1727/1727), done.
remote: Total 37355 (delta 2538), reused 3063 (delta 2026), pack-reused 33562Receiving objects: 100% (37355/37355), 9.86Receiving objects: 100% (37355/37355), 9.98 MiB | 274.00 KiB/s
, done.
Resolving deltas: 100% (28645/28645), done.
Updating files: 100% (1973/1973), done.
PS E:\ordinateur\n8n node> cd n8n
PS E:\ordinateur\n8n node\n8n> lerna bootstrap --hoist
lerna notice cli v4.0.0
lerna info versioning independent
lerna info Bootstrapping 6 packages
lerna WARN EHOIST_PKG_VERSION "n8n" package depends on @types/node@14.0.27, which differs from the hoisted @types/node@^14.14.40.
lerna WARN EHOIST_PKG_VERSION "n8n-editor-ui" package depends on uuid@^8.1.0, which differs from the hoisted uuid@^3.4.0.
lerna WARN EHOIST_PKG_VERSION "n8n-node-dev" package depends on @types/tmp@^0.1.0, which differs from the hoisted @types/tmp@^0.2.0.
lerna WARN EHOIST_PKG_VERSION "n8n-node-dev" package depends on tmp-promise@^2.0.2, which differs from the hoisted tmp-promise@^3.0.2.
lerna info Installing external dependencies
lerna info hoist Installing hoisted dependencies into root
lerna info hoist Pruning hoisted dependencies
lerna info hoist Finished pruning hoisted dependencies
lerna ERR! npm install exited 1 in 'n8n'
lerna ERR! npm install stderr:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: n8n@undefined
npm ERR! Found: eslint@6.8.0
npm ERR! node_modules/eslint
npm ERR! eslint@"^6.8.0" from the root project
npm ERR! peer eslint@">=6.2.2" from @vue/eslint-config-standard@5.1.2
npm ERR! node_modules/@vue/eslint-config-standard
npm ERR! @vue/eslint-config-standard@"^5.0.1" from the root project
npm ERR! 2 more (eslint-plugin-import, eslint-plugin-node)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^7.0.0" from eslint-plugin-promise@5.1.0
npm ERR! node_modules/eslint-plugin-promise
npm ERR! peer eslint-plugin-promise@">= 4.2.1" from @vue/eslint-config-standard@5.1.2
npm ERR! node_modules/@vue/eslint-config-standard
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\simon\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\simon\AppData\Local\npm-cache\_logs\2021-04-24T21_05_26_179Z-debug.log
lerna ERR! npm install exited 1 in 'n8n'
PS E:\ordinateur\n8n node\n8n> lerna bootstrap --hoist
lerna notice cli v4.0.0
lerna info versioning independent
lerna info Bootstrapping 6 packages
lerna WARN EHOIST_PKG_VERSION "n8n" package depends on @types/node@14.0.27, which differs from the hoisted @types/node@^14.14.40.
lerna WARN EHOIST_PKG_VERSION "n8n-editor-ui" package depends on uuid@^8.1.0, which differs from the hoisted uuid@^3.4.0.
lerna WARN EHOIST_PKG_VERSION "n8n-node-dev" package depends on @types/tmp@^0.1.0, which differs from the hoisted @types/tmp@^0.2.0.
lerna WARN EHOIST_PKG_VERSION "n8n-node-dev" package depends on tmp-promise@^2.0.2, which differs from the hoisted tmp-promise@^3.0.2.
lerna info Installing external dependencies
lerna info hoist Installing hoisted dependencies into root
lerna info hoist Pruning hoisted dependencies
lerna info hoist Finished pruning hoisted dependencies
lerna ERR! npm install exited 1 in 'n8n'
lerna ERR! npm install stderr:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: n8n@undefined
npm ERR! Found: eslint@6.8.0
npm ERR! node_modules/eslint
npm ERR! eslint@"^6.8.0" from the root project
npm ERR! peer eslint@">=6.2.2" from @vue/eslint-config-standard@5.1.2
npm ERR! node_modules/@vue/eslint-config-standard
npm ERR! @vue/eslint-config-standard@"^5.0.1" from the root project
npm ERR! 2 more (eslint-plugin-import, eslint-plugin-node)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^7.0.0" from eslint-plugin-promise@5.1.0
npm ERR! node_modules/eslint-plugin-promise
npm ERR! peer eslint-plugin-promise@">= 4.2.1" from @vue/eslint-config-standard@5.1.2
npm ERR! node_modules/@vue/eslint-config-standard
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\simon\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\simon\AppData\Local\npm-cache\_logs\2021-04-24T21_09_15_123Z-debug.log
lerna ERR! npm install exited 1 in 'n8n'
PS E:\ordinateur\n8n node\n8n> npm run build
> build
> lerna exec npm run build
lerna notice cli v4.0.0
lerna info versioning independent
lerna info Executing command in 6 packages: "npm run build"
> n8n-workflow@0.56.0 build
> tsc
> n8n-node-dev@0.11.0 build
> tsc
error TS2688: Cannot find type definition file for 'node'.
The file is in the program because:
Entry point of type library 'node' specified in compilerOptions
tsconfig.json:7:4
7 "node"
~~~~~~
File is entry point of type library specified here.
Found 1 error.
lerna ERR! npm run build exited 2 in 'n8n-node-dev'
lerna ERR! npm run build exited 2 in 'n8n-node-dev'
lerna WARN complete Waiting for 1 child process to exit. CTRL-C to exit immediately.
PS E:\ordinateur\n8n node\n8n> error TS2688: Cannot find type definition file for 'jest'.
The file is in the program because:
Entry point of type library 'jest' specified in compilerOptions
tsconfig.json:9:4
9 "jest"
~~~~~~
File is entry point of type library specified here.
error TS2688: Cannot find type definition file for 'node'.
Entry point of type library 'node' specified in compilerOptions
tsconfig.json:8:4
8 "node",
~~~~~~
File is entry point of type library specified here.
Found 2 errors.
npm run start
> start
> run-script-os
'run-script-os' n’est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
PS E:\ordinateur\n8n node\n8n>
It’s ok, I solved the problem by reinstalling node js. I can make the tool work. Thanks again for helping me. In the next day I will share my node creation.