I would like to try to help with some requests. I am not super familiar with npm so I may do some basic mistake.
Anyway, I followed this md file, Actual n8n setup 1-5 done with no error, but subpoint 6 made error like following:
throw er; // Unhandled 'error' event
^
Error: write EPIPE
at process.target._send (node:internal/child_process:846:20)
at process.target.send (node:internal/child_process:719:19)
at callback (/home/simon/Downloads/n8n/node_modules/worker-farm/lib/child/index.js:32:17)
at module.exports (/home/simon/Downloads/n8n/node_modules/terser-webpack-plugin/dist/worker.js:13:5)
at handle (/home/simon/Downloads/n8n/node_modules/worker-farm/lib/child/index.js:44:8)
at process.<anonymous> (/home/simon/Downloads/n8n/node_modules/worker-farm/lib/child/index.js:55:3)
at process.emit (node:events:390:28)
at emit (node:internal/child_process:917:12)
at processTicksAndRejections (node:internal/process/task_queues:84:21)
Emitted 'error' event on process instance at:
at node:internal/child_process:850:39
at processTicksAndRejections (node:internal/process/task_queues:78:11) {
errno: -32,
code: 'EPIPE',
syscall: 'write'
Then run the lerna command followed by build and see how that goes? I know when I set up my Ubuntu Desktop I had to configure the ulimit settings but you don’t have that error yet
It sadly looks like you are doing the opposite of what I said. You are now particularly using the version you already used before and I mentioned not to use.
So to make it clear:
Please do NOT use v16.
Please DO use v14.
And I am also not sure that solves the problem for sure, but that is my first guess as it builds for me just fine and it also builds fine on GitHub, both times Node.js v14 gets used.
I am sorry sir, to clarify I am able to read That was just moment brainstorm.
BTW. that’s weird because I tried that few days ago (this is written in GH, that it’s best version)
Thank you and sorry for this ‘misunderstanding’ on my side
haha, yes it is sadly quite easy to overread a single word or to mix up one with the other. So I thought I make sure that it can not happen and avoid and missunderstandings
We actually right now still recommend v14 in the docs here.
So in CONTRIBUTING.md you say that best is 14.18.0 I just checked my bash_history, and I tried this specific version, but it did not work for me. Now running on 14.8.2, and it’s cool.
Not sure if it’s only problem on my machine, but if not someone in future will have the same problem, this may be helpful information.
Also, you may have a look for something, npm run build && npm run start work fine for me:
[simon@LENOVO] ~/Documents/n8n ⇨ npm run build Took 0s [ 11:57:20 ]
> n8n@ build /home/simon/Documents/n8n
> lerna exec npm run build
lerna notice cli v3.22.1
lerna info versioning independent
lerna info Executing command in 7 packages: "npm run build"
> [email protected] build /home/simon/Documents/n8n/packages/workflow
> tsc
> [email protected] build /home/simon/Documents/n8n/packages/design-system
> npm run build:theme
> [email protected] build /home/simon/Documents/n8n/packages/node-dev
> tsc
> [email protected] build:theme /home/simon/Documents/n8n/packages/design-system
> gulp build:theme
[23:57:28] Using gulpfile ~/Documents/n8n/packages/design-system/gulpfile.js
[23:57:28] Starting 'build:theme'...
[23:57:28] Starting 'compileTheme'...
[23:57:30] Finished 'compileTheme' after 1.93 s
[23:57:30] Starting 'copyThemeFonts'...
[23:57:30] Finished 'copyThemeFonts' after 14 ms
[23:57:30] Finished 'build:theme' after 1.94 s
> [email protected] build /home/simon/Documents/n8n/packages/core
> tsc
> [email protected] build /home/simon/Documents/n8n/packages/editor-ui
> cross-env VUE_APP_PUBLIC_PATH="/%BASE_PATH%/" vue-cli-service build
⠙ Building for production...Starting type checking and linting service...
Using 1 worker with 2048MB memory limit
⠼ Building for production...
> [email protected] build /home/simon/Documents/n8n/packages/nodes-base
> tsc && gulp build:icons && gulp build:translations
⠙ Building for production...
WARNING Compiled with 2 warnings 11:57:56 PM
warning
asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
json.worker.js (249 KiB)
ts.worker.js (4.5 MiB)
js/app.203a594c.js (482 KiB)
css/chunk-vendors.f712817b.css (298 KiB)
js/chunk-vendors.37bbe0f9.js (4.34 MiB)
warning
entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
app (5.16 MiB)
css/chunk-vendors.f712817b.css
js/chunk-vendors.37bbe0f9.js
css/app.12a0c523.css
js/app.203a594c.js
[23:57:59] Using gulpfile ~/Documents/n8n/packages/nodes-base/gulpfile.js
[23:57:59] Starting 'build:icons'...
[23:57:59] Finished 'build:icons' after 202 ms
[23:58:00] Using gulpfile ~/Documents/n8n/packages/nodes-base/gulpfile.js
[23:58:00] Starting 'build:translations'...
Default locale set to: en
No translation required - Skipping translations build...
[23:58:00] Finished 'build:translations' after 1.15 ms
Webpack Bundle Analyzer saved report to /home/simon/Documents/n8n/packages/editor-ui/dist/report.html
File Size Gzipped
dist/ts.worker.js 4610.57 KiB 1033.84 KiB
dist/js/chunk-vendors.37bbe0f9.js 4440.60 KiB 1132.80 KiB
dist/js/app.203a594c.js 482.46 KiB 120.74 KiB
dist/json.worker.js 248.83 KiB 74.50 KiB
dist/editor.worker.js 123.58 KiB 40.85 KiB
dist/js/chunk-4301fce8.d032a636.js 121.50 KiB 32.94 KiB
dist/js/chunk-2d22d3e6.388c0a4c.js 28.89 KiB 7.23 KiB
dist/js/chunk-b1e1f7c0.92d036f0.js 5.93 KiB 2.11 KiB
dist/js/chunk-2d2073c1.f0370751.js 5.00 KiB 1.97 KiB
dist/css/chunk-vendors.f712817b.css 297.99 KiB 44.30 KiB
dist/css/app.12a0c523.css 62.34 KiB 12.24 KiB
Images and other types of assets omitted.
DONE Build complete. The dist directory is ready to be deployed.
INFO Check out deployment instructions at https://cli.vuejs.org/guide/deployment.html
> [email protected] build /home/simon/Documents/n8n/packages/cli
> tsc
lerna success exec Executed command in 7 packages: "npm run build"
[simon@LENOVO] ~/Documents/n8n ⇨ npm run start Took 40s [ 11:58:07 ]
> n8n@ start /home/simon/Documents/n8n
> run-script-os
> n8n@ start:default /home/simon/Documents/n8n
> cd packages/cli/bin && ./n8n
Initializing n8n process
n8n ready on 0.0.0.0, port 5678
Version: 0.155.2
Editor is now accessible via:
http://localhost:5678/
Press "o" to open in Browser.
But npm run dev finish with error ;/ But it serve n8n what I cannot gentle stop, do you understand maybe below errors?
12:00:52 AM - Starting compilation in watch mode...
n8n: [TypeScript]
n8n-editor-ui: INFO Starting development server...
n8n: [Node]
n8n: [Node] > [email protected] start:default /home/simon/Documents/n8n/packages/cli
n8n: [Node] > cd bin && ./n8n
n8n: [Node]
n8n-design-system: [00:00:52] Using gulpfile ~/Documents/n8n/packages/design-system/gulpfile.js
n8n-design-system: [00:00:52] Starting 'watch:theme'...
n8n-design-system: [00:00:52] Starting 'build:theme'...
n8n-design-system: [00:00:52] Starting 'compileTheme'...
n8n: [Node] Initializing n8n process
n8n-editor-ui: Starting type checking and linting service...
n8n-editor-ui: Using 1 worker with 2048MB memory limit
n8n-editor-ui: <s> [webpack.Progress] 0% compiling
n8n-editor-ui: <s> [webpack.Progress] 10% building 0/0 modules 0 active
n8n-editor-ui: <s> [webpack.Progress] 10% building 0/1 modules 1 active multi /home/simon/Documents/n8n/node_modules/webpack-dev-server/client/index.js?http://192.168.0.104:8080&sockPath=/sockjs-node /home/simon/Documents/n8n/node_modules/webpack/hot/dev-server.js ./src/main.ts
n8n-editor-ui: <s> [webpack.Progress] 10% building 1/1 modules 0 active
n8n-editor-ui: <s> [webpack.Progress] 10% building 1/1 modules 0 active
n8n-editor-ui: <s> [webpack.Progress] 10% building 1/2 modules 1 active multi /home/simon/Documents/n8n/node_modules/webpack/hot/dev-server.js /home/simon/Documents/n8n/node_modules/webpack-dev-server/client/index.js?http://192.168.0.104:8080&sockPath=/sockjs-node ./src/main.ts
n8n-editor-ui: <s> [webpack.Progress] 10% building 2/2 modules 0 active
n8n-editor-ui: events.js:377
n8n-editor-ui: throw er; // Unhandled 'error' event
n8n-editor-ui: ^
n8n-editor-ui: Error: ENOSPC: System limit for number of file watchers reached, watch '/home/simon/Documents/n8n/packages/editor-ui/public'
n8n-editor-ui: at FSWatcher.<computed> (internal/fs/watchers.js:243:19)
n8n-editor-ui: at Object.watch (fs.js:1586:34)
n8n-editor-ui: at createFsWatchInstance (/home/simon/Documents/n8n/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:38:15)
n8n-editor-ui: at setFsWatchListener (/home/simon/Documents/n8n/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:81:15)
n8n-editor-ui: at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/simon/Documents/n8n/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:233:14)
n8n-editor-ui: at FSWatcher.NodeFsHandler._handleDir (/home/simon/Documents/n8n/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:429:19)
n8n-editor-ui: at FSWatcher.<anonymous> (/home/simon/Documents/n8n/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:477:19)
n8n-editor-ui: at FSWatcher.<anonymous> (/home/simon/Documents/n8n/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:482:16)
n8n-editor-ui: at FSReqCallback.oncomplete (fs.js:192:5)
n8n-editor-ui: Emitted 'error' event on FSWatcher instance at:
n8n-editor-ui: at FSWatcher._handleError (/home/simon/Documents/n8n/node_modules/webpack-dev-server/node_modules/chokidar/index.js:260:10)
n8n-editor-ui: at createFsWatchInstance (/home/simon/Documents/n8n/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:40:5)
n8n-editor-ui: at setFsWatchListener (/home/simon/Documents/n8n/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:81:15)
n8n-editor-ui: [... lines matching original stack trace ...]
n8n-editor-ui: at FSReqCallback.oncomplete (fs.js:192:5) {
n8n-editor-ui: errno: -28,
n8n-editor-ui: syscall: 'watch',
n8n-editor-ui: code: 'ENOSPC',
n8n-editor-ui: path: '/home/simon/Documents/n8n/packages/editor-ui/public',
n8n-editor-ui: filename: '/home/simon/Documents/n8n/packages/editor-ui/public'
n8n-editor-ui: }
n8n-editor-ui: npm ERR! code ELIFECYCLE
n8n-editor-ui: npm ERR! errno 1
n8n-editor-ui: npm ERR! [email protected] serve: `cross-env VUE_APP_URL_BASE_API=http://localhost:5678/ vue-cli-service serve`
n8n-editor-ui: npm ERR! Exit status 1
n8n-editor-ui: npm ERR!
n8n-editor-ui: npm ERR! Failed at the [email protected] serve script.
n8n-editor-ui: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
n8n-editor-ui: npm ERR! A complete log of this run can be found in:
n8n-editor-ui: npm ERR! /home/simon/.npm/_logs/2022-01-09T23_00_54_154Z-debug.log
n8n-editor-ui: npm ERR! code ELIFECYCLE
n8n-editor-ui: npm ERR! errno 1
n8n-editor-ui: npm ERR! [email protected] dev: `npm run serve`
n8n-editor-ui: npm ERR! Exit status 1
n8n-editor-ui: npm ERR!
n8n-editor-ui: npm ERR! Failed at the [email protected] dev script.
n8n-editor-ui: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
n8n-editor-ui: npm ERR! A complete log of this run can be found in:
n8n-editor-ui: npm ERR! /home/simon/.npm/_logs/2022-01-09T23_00_54_180Z-debug.log
lerna ERR! npm run dev exited 1 in 'n8n-editor-ui'
lerna ERR! npm run dev stdout:
> [email protected] dev /home/simon/Documents/n8n/packages/editor-ui
> npm run serve
> [email protected] serve /home/simon/Documents/n8n/packages/editor-ui
> cross-env VUE_APP_URL_BASE_API=http://localhost:5678/ vue-cli-service serve
INFO Starting development server...
Starting type checking and linting service...
Using 1 worker with 2048MB memory limit
lerna ERR! npm run dev stderr:
<s> [webpack.Progress] 0% compiling
<s> [webpack.Progress] 10% building 0/0 modules 0 active
<s> [webpack.Progress] 10% building 0/1 modules 1 active multi /home/simon/Documents/n8n/node_modules/webpack-dev-server/client/index.js?http://192.168.0.104:8080&sockPath=/sockjs-node /home/simon/Documents/n8n/node_modules/webpack/hot/dev-server.js ./src/main.ts
<s> [webpack.Progress] 10% building 1/1 modules 0 active
<s> [webpack.Progress] 10% building 1/1 modules 0 active
<s> [webpack.Progress] 10% building 1/2 modules 1 active multi /home/simon/Documents/n8n/node_modules/webpack/hot/dev-server.js /home/simon/Documents/n8n/node_modules/webpack-dev-server/client/index.js?http://192.168.0.104:8080&sockPath=/sockjs-node ./src/main.ts
<s> [webpack.Progress] 10% building 2/2 modules 0 active
events.js:377
throw er; // Unhandled 'error' event
^
Error: ENOSPC: System limit for number of file watchers reached, watch '/home/simon/Documents/n8n/packages/editor-ui/public'
at FSWatcher.<computed> (internal/fs/watchers.js:243:19)
at Object.watch (fs.js:1586:34)
at createFsWatchInstance (/home/simon/Documents/n8n/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:38:15)
at setFsWatchListener (/home/simon/Documents/n8n/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:81:15)
at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/simon/Documents/n8n/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:233:14)
at FSWatcher.NodeFsHandler._handleDir (/home/simon/Documents/n8n/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:429:19)
at FSWatcher.<anonymous> (/home/simon/Documents/n8n/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:477:19)
at FSWatcher.<anonymous> (/home/simon/Documents/n8n/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:482:16)
at FSReqCallback.oncomplete (fs.js:192:5)
Emitted 'error' event on FSWatcher instance at:
at FSWatcher._handleError (/home/simon/Documents/n8n/node_modules/webpack-dev-server/node_modules/chokidar/index.js:260:10)
at createFsWatchInstance (/home/simon/Documents/n8n/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:40:5)
at setFsWatchListener (/home/simon/Documents/n8n/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:81:15)
[... lines matching original stack trace ...]
at FSReqCallback.oncomplete (fs.js:192:5) {
errno: -28,
syscall: 'watch',
code: 'ENOSPC',
path: '/home/simon/Documents/n8n/packages/editor-ui/public',
filename: '/home/simon/Documents/n8n/packages/editor-ui/public'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] serve: `cross-env VUE_APP_URL_BASE_API=http://localhost:5678/ vue-cli-service serve`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] serve 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! /home/simon/.npm/_logs/2022-01-09T23_00_54_154Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: `npm run serve`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev 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! /home/simon/.npm/_logs/2022-01-09T23_00_54_180Z-debug.log
lerna ERR! npm run dev exited 1 in 'n8n-editor-ui'
lerna WARN complete Waiting for 6 child processes to exit. CTRL-C to exit immediately.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! n8n@ dev: `lerna exec npm run dev --parallel`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the n8n@ dev 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! /home/simon/.npm/_logs/2022-01-09T23_00_54_223Z-debug.log
[simon@LENOVO] ~/Documents/n8n ⇨ sudo netstat -tulpn | grep LISTEN | grep 5678 Retuned: 1 [ 12:00:54 ]
tcp 0 0 0.0.0.0:5678 0.0.0.0:* LISTEN 52237/node
[simon@LENOVO] ~/Documents/n8n ⇨ kill 52237 Took 0s [ 12:01:00 ]
[simon@LENOVO] ~/Documents/n8n ⇨ sudo netstat -tulpn | grep LISTEN | grep 5678 Took 0s [ 12:01:05 ]
[simon@LENOVO] ~/Documents/n8n ⇨
It’s similar error than at v16.13.1 at least this part
This is the ulimit error I mentioned that you didn’t have yet
You will need to configure the file limits for your user to allow for a lot more than the default value.
If you pop open /etc/sysctl.conf you will find an option for fs.inotify.max_user_watches set this to something like 524288 then restart your machine and you should be good to go.