Kindly please guide me to run the above feature locally in my n8n account, it is not published yet.
Unfortunately I don’t have no coding background and not able to understand the documentation which was provided. This particular feature is used to create or update incoming data from a g sheet to Salesforce. I am not able to insert this operation into my n8n account , that i am using to do this automation. I had github gli installed on my system as per the documentation. from this point on wards i am not able to proceed or understand and complete the task. there is no video out there to show a step by step guidance for a non coder to use the function .
Details for the request??
I am struggling to understand what are the steps that need to be made for pulling this extention or brach that is in git hub and make the operation running in my account.
Hey @Jaison_Joseph! I am afraid, but this still doesn’t answer my question. Anyways, if you want to try out that specific branch locally on your machine, you need to have Node.js, lerna, and git installed on your machine. You can check the instructions and the links for installing these softwares here: Creating Your First Node | Docs
Once you have that, you can clone the repo (download) on your machine running the command git clone https://github.com/n8n-io/n8n.git.
Once you’ve cloned the repo use the command cd n8n to navigate into the project directory. After that run the commands:
I work as remote new SF admin. my org is based in Malaysia, I have been given access to n8n to do automation and it is first time in my life i am doing an integration.that why I assumed it is cloud version.
This part of downloading is confusing (you need to have Node.js, lerna, and git installed on your machine. You can check the instructions and the links for installing these softwares here: [Creating your first node | Docs]) Do i need to write any commands or code to install the above… Do i use Cmd.exe …
C:\Users\dudu\n8n>lerna bootstrap --hoist
‘lerna’ is not recognized as an internal or external command,
operable program or batch file.
C:\Users\dudu\n8n>npm run build
n8n@ build C:\Users\dudu\n8n
lerna exec npm run build
‘lerna’ is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! n8n@ build: lerna exec npm run build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the n8n@ build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\dudu\AppData\Roaming\npm-cache_logs\2021-05-17T17_43_18_643Z-debug.log
C:\Users\dudu\n8n>npm run start
n8n@ start C:\Users\dudu\n8n
run-script-os
‘run-script-os’ is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! n8n@ start: run-script-os
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the n8n@ start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\dudu\AppData\Roaming\npm-cache_logs\2021-05-17T17_44_00_521Z-debug.log
Hi Jan,
After installing npm install - g lerna.
I ran the below commands and still throwing errors
C:\Users\dudu\n8n>lerna bootstrap --hoist
info cli using local version of lerna
lerna notice cli v3.22.1
lerna info versioning independent
lerna info Bootstrapping 6 packages
lerna WARN EHOIST_PKG_VERSION "n8n" package depends on @types/[email protected], 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: [email protected]
npm ERR! node_modules/eslint
npm ERR! eslint@"^6.8.0" from the root project
npm ERR! peer eslint@">=6.2.2" from @vue/[email protected]
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 [email protected]
npm ERR! node_modules/eslint-plugin-promise
npm ERR! peer eslint-plugin-promise@">= 4.2.1" from @vue/[email protected]
npm ERR! node_modules/@vue/eslint-config-standard
npm ERR! @vue/eslint-config-standard@"^5.0.1" from the root project
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\dudu\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\dudu\AppData\Local\npm-cache\_logs\2021-05-17T19_28_26_317Z-debug.log
lerna ERR! npm install exited 1 in 'n8n'
C:\Users\dudu\n8n>npm run build
> n8n@ build C:\Users\dudu\n8n
> lerna exec npm run build
lerna notice cli v3.22.1
lerna info versioning independent
lerna info Executing command in 6 packages: "npm run build"
> [email protected] build
> tsc
> [email protected] build
> tsc
commands/build.ts:3:8 - error TS2307: Cannot find module 'n8n-core' or its corresponding type declarations.
3 } from "n8n-core";
~~~~~~~~~~
commands/build.ts:4:32 - error TS2307: Cannot find module '@oclif/command' or its corresponding type declarations.
4 import { Command, flags } from '@oclif/command';
~~~~~~~~~~~~~~~~
commands/build.ts:32:26 - error TS2339: Property 'parse' does not exist on type 'Build'.
32 const { flags } = this.parse(Build);
~~~~~
commands/build.ts:34:8 - error TS2339: Property 'log' does not exist on type 'Build'.
34 this.log('\nBuild credentials and nodes');
~~~
commands/build.ts:35:8 - error TS2339: Property 'log' does not exist on type 'Build'.
35 this.log('=========================');
~~~
commands/build.ts:49:9 - error TS2339: Property 'log' does not exist on type 'Build'.
49 this.log(`The nodes got build and saved into the following folder:\n${outputDirectory}`);
~~~
commands/build.ts:52:9 - error TS2339: Property 'log' does not exist on type 'Build'.
52 this.log(`\nGOT ERROR: "${error.message}"`);
~~~
commands/build.ts:53:9 - error TS2339: Property 'log' does not exist on type 'Build'.
53 this.log('====================================');
~~~
commands/build.ts:54:9 - error TS2339: Property 'log' does not exist on type 'Build'.
54 this.log(error.stack);
~~~
commands/new.ts:1:29 - error TS2307: Cannot find module 'change-case' or its corresponding type declarations.
1 import * as changeCase from 'change-case';
~~~~~~~~~~~~~
commands/new.ts:3:27 - error TS7016: Could not find a declaration file for module 'inquirer'. 'C:/Users/dudu/n8n/node_modules/inquirer/lib/inquirer.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/inquirer` if it exists or add a new declaration (.d.ts) file containing `declare module 'inquirer';`
3 import * as inquirer from 'inquirer';
~~~~~~~~~~
commands/new.ts:4:25 - error TS2307: Cannot find module '@oclif/command' or its corresponding type declarations.
4 import { Command } from '@oclif/command';
~~~~~~~~~~~~~~~~
commands/new.ts:24:9 - error TS2339: Property 'log' does not exist on type 'New'.
24 this.log('\nCreate new credentials/node');
~~~
commands/new.ts:25:9 - error TS2339: Property 'log' does not exist on type 'New'.
25 this.log('=========================');
~~~
commands/new.ts:132:11 - error TS2339: Property 'log' does not exist on type 'New'.
132 this.log('\nNode creation got canceled!');
~~~
commands/new.ts:150:9 - error TS2339: Property 'log' does not exist on type 'New'.
150 this.log('\nExecution was successfull:');
~~~
commands/new.ts:151:9 - error TS2339: Property 'log' does not exist on type 'New'.
151 this.log('====================================');
~~~
commands/new.ts:153:9 - error TS2339: Property 'log' does not exist on type 'New'.
153 this.log('Node got created: ' + destinationFilePath);
~~~
commands/new.ts:155:9 - error TS2339: Property 'log' does not exist on type 'New'.
155 this.log(`\nGOT ERROR: "${error.message}"`);
~~~
commands/new.ts:156:9 - error TS2339: Property 'log' does not exist on type 'New'.
156 this.log('====================================');
~~~
commands/new.ts:157:9 - error TS2339: Property 'log' does not exist on type 'New'.
157 this.log(error.stack);
~~~
src/Build.ts:18:8 - error TS2307: Cannot find module 'n8n-core' or its corresponding type declarations.
18 } from 'n8n-core';
~~~~~~~~~~
src/Create.ts:3:51 - error TS2307: Cannot find module 'replace-in-file' or its corresponding type declarations.
3 import {replaceInFile, ReplaceInFileConfig } from 'replace-in-file';
~~~~~~~~~~~~~~~~~
Found 23 errors.
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.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! n8n@ build: `lerna exec npm run build`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the n8n@ build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\dudu\AppData\Roaming\npm-cache\_logs\2021-05-17T19_28_32_719Z-debug.log
C:\Users\dudu\n8n>cd n8n
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.
Found 1 error.
What Node.js version do you use? If it is anything except v14 you should try with that one. Also important to use npm version 6 (version 7 messes stuff up at least on Linux very bad).
You have exactly the same problem as described here: https://github.com/n8n-io/n8n/issues/1693
and exactly the same problem I had last week when I was using npm@7.
The problems disappeared for both of us as soon as we used npm@6. So if you have the same problem also with npm@6 that is very confusing (as it is only a known issue for that external package that n8n uses with npm@7).
The only other thing I can advise then is to create a development environment in Docker with Ubuntu where it runs for sure. Sorry.
hmmm … How do I create a development environment in Docker with ubuntu?.. Can a non developer do it without any prior knowledge. Any simple and clear documentation to do this task…