[ERROR] A utility CLI has unexpectedly closed (exit code 1)

When I am run ionic serve show this error:

D:\MyProject>ionic serve
> ionic-app-scripts serve --address 0.0.0.0 --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser
[app-scripts] [20:30:08]  ionic-app-scripts 3.1.11
[app-scripts] [20:30:08]  watch started ...
[app-scripts] [20:30:08]  build dev started ...
[app-scripts] [20:30:08]  clean started ...
[app-scripts] [20:30:08]  clean finished in less than 1 ms
[app-scripts] [20:30:08]  copy started ...
[app-scripts] [20:30:08]  deeplinks started ...
[app-scripts] [20:30:08]  ionic-app-script task: "serve"
[app-scripts] [20:30:08]  Error: There are multiple entries in the deeplink config with the name of SingleQerarPage
[app-scripts] Error: There are multiple entries in the deeplink config with the name of SingleQerarPage
[app-scripts]     at new BuildError (D:\EmekMecellesi\node_modules\@ionic\app-scripts\dist\util\errors.js:16:28)
[app-scripts]     at D:\EmekMecellesi\node_modules\@ionic\app-scripts\dist\deep-linking.js:57:21
[app-scripts]     at <anonymous>

[ERROR] A utility CLI has unexpectedly closed (exit code 1).

        The Ionic CLI will exit. Please check any output above for error details.
events.js:165
      throw er; // Unhandled 'error' event
      ^

TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be one of type string or Buffer
    at validChunk (_stream_writable.js:257:10)
    at WriteStream.Writable.write (_stream_writable.js:292:21)
    at process.<anonymous> (C:\Users\TaGi-PC\AppData\Roaming\npm\node_modules\ionic\bin\ionic:9:63)
    at process.emit (events.js:180:13)
    at emitPromiseRejectionWarnings (internal/process/promises.js:102:20)
    at process._tickCallback (internal/process/next_tick.js:183:42)
Emitted 'error' event at:
    at validChunk (_stream_writable.js:261:12)
    at WriteStream.Writable.write (_stream_writable.js:292:21)
    [... lines matching original stack trace ...]
    at process._tickCallback (internal/process/next_tick.js:183:42)

My ionic info:

Ionic:

   ionic (Ionic CLI)  : 4.1.0 (C:\Users\TaGi-PC\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.1.11

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : android 7.0.0
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.2, cordova-plugin-ionic-webview 2.0.1, (and 4 other plugins)

System:

   Android SDK Tools : 25.2.5
   NodeJS            : v9.11.1 (C:\Program Files\nodejs\node.exe)
   npm               : 5.6.0
   OS                : Windows 8.1

Environment:

   ANDROID_HOME : C:\Users\TaGi-PC\AppData\Local\Android\sdk

This is your error you have to fix

1 Like

I check error page there is no problem.

Sorry. It is my mistake
Thank you for support :slight_smile:

1 Like

hi, i’m beginner in ionic and i get the similar error :

epsilon@epsilon-Precision-WorkStation-T3500:~/lab/mobile/app2$ ionic s
react-scripts start
[react-scripts] :information_source: 「wds」: Project is running at http://192.168.43.160/
[react-scripts] :information_source: 「wds」: webpack output is served from
[react-scripts] :information_source: 「wds」: Content not from webpack is served from /home/epsilon/lab/mobile/app2/public
[react-scripts] :information_source: 「wds」: 404s will fallback to /
[react-scripts] Starting the development server…
[react-scripts]
[react-scripts] events.js:287
[react-scripts] throw er; // Unhandled ‘error’ event
[react-scripts] ^
[react-scripts] Error: ENOSPC: System limit for number of file watchers reached, watch ‘/home/epsilon/lab/mobile/app2/public’
[react-scripts] at FSWatcher.start (internal/fs/watchers.js:169:26)
[react-scripts] at Object.watch (fs.js:1347:11)
[react-scripts] at createFsWatchInstance (/home/epsilon/lab/mobile/app2/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:38:15)
[react-scripts] at setFsWatchListener (/home/epsilon/lab/mobile/app2/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:81:15)
[react-scripts] at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/epsilon/lab/mobile/app2/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:233:14)
[react-scripts] at FSWatcher.NodeFsHandler._handleDir (/home/epsilon/lab/mobile/app2/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:429:19)
[react-scripts] at FSWatcher. (/home/epsilon/lab/mobile/app2/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:477:19)
[react-scripts] at FSWatcher. (/home/epsilon/lab/mobile/app2/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:482:16)
[react-scripts] at FSReqCallback.oncomplete (fs.js:168:5)
[react-scripts] Emitted ‘error’ event on FSWatcher instance at:
[react-scripts] at FSWatcher._handleError (/home/epsilon/lab/mobile/app2/node_modules/webpack-dev-server/node_modules/chokidar/index.js:260:10)
[react-scripts] at createFsWatchInstance (/home/epsilon/lab/mobile/app2/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:40:5)
[react-scripts] at setFsWatchListener (/home/epsilon/lab/mobile/app2/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:81:15)
[react-scripts] [… lines matching original stack trace …]
[react-scripts] at FSReqCallback.oncomplete (fs.js:168:5) {
[react-scripts] errno: -28,
[react-scripts] syscall: ‘watch’,
[react-scripts] code: ‘ENOSPC’,
[react-scripts] path: ‘/home/epsilon/lab/mobile/app2/public’,
[react-scripts] filename: ‘/home/epsilon/lab/mobile/app2/public’
[react-scripts] }

[ERROR] react-scripts has unexpectedly closed (exit code 1).

can you help me ?

I see no meaningful similarity between your post and the rest of this thread, so if you can’t figure out how to fix your problem by googling “ENOSPC”, which is the crucial part of your stacktrace, I would suggest creating a new topic.