Error: ENOENT: no such file or directory, open '/home/circleci/project/version'

What is this file/directory used for? And how do I fix it?

Error: ENOENT: no such file or directory, open '/home/circleci/project/version'
Emitted 'error' event on Domain instance at:
    at DestroyableTransform.emit (node:domain:525:12)
    at Pumpify.emit (node:events:526:28)
    at Pumpify.emit (node:domain:475:12)
    at Pumpify.Duplexify._destroy (/home/circleci/project/node_modules/duplexify/index.js:191:15)
    at /home/circleci/project/node_modules/duplexify/index.js:182:10
    at processTicksAndRejections (node:internal/process/task_queues:78:11) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/home/circleci/project/version',
  domainEmitter: DestroyableTransform {
    _readableState: ReadableState {
      objectMode: true,
      highWaterMark: 16,
      buffer: BufferList { head: null, tail: null, length: 0 },
      length: 0,
      pipes: Stream {
        _events: [Object: null prototype] {
          end: [Function (anonymous)],
          unpipe: [Function: onunpipe],
          drain: [Function (anonymous)],
          error: [Function: onerror],
          close: [Function: bound onceWrapper] {
            listener: [Function: onclose]
          },
          finish: [Function: bound onceWrapper] {
            listener: [Function: onfinish]
          }
        },
        _eventsCount: 6,
        _maxListeners: undefined,
        writable: true,
        readable: true,
        paused: false,
        autoDestroy: true,
        write: [Function (anonymous)],
        push: [Function (anonymous)],
        queue: [Function (anonymous)],
        end: [Function (anonymous)],
        destroy: [Function (anonymous)],
        pause: [Function (anonymous)],
        resume: [Function (anonymous)],
        [Symbol(kCapture)]: false
      },
      pipesCount: 1,
      flowing: true,
      ended: false,
      endEmitted: false,
      reading: true,
      sync: false,
      needReadable: true,
      emittedReadable: false,
      readableListening: false,
      resumeScheduled: false,
      destroyed: false,
      defaultEncoding: 'utf8',
      awaitDrain: 0,
      readingMore: false,
      decoder: null,
      encoding: null
    },
    readable: true,
    _events: [Object: null prototype] {
      end: [
        [Function: bound onceWrapper] { listener: [Function: onend] },
        [Function: bound onceWrapper] { listener: [Function: onend] }
      ],
      prefinish: [Function: prefinish],
      pipe: [Function: bound onceWrapper] { listener: [Function: onPipe] },
      data: [Function: ondata]
    },
    _eventsCount: 4,
    _maxListeners: undefined,
    _writableState: WritableState {
      objectMode: true,
      highWaterMark: 16,
      finalCalled: false,
      needDrain: false,
      ending: true,
      ended: true,
      finished: true,
      destroyed: false,
      decodeStrings: true,
      defaultEncoding: 'utf8',
      length: 0,
      writing: false,
      corked: 0,
      sync: true,
      bufferProcessing: false,
      onwrite: [Function (anonymous)],
      writecb: null,
      writelen: 0,
      bufferedRequest: null,
      lastBufferedRequest: null,
      pendingcb: 0,
      prefinished: true,
      errorEmitted: false,
      bufferedRequestCount: 0,
      corkedRequestsFree: CorkedRequest {
        next: null,
        entry: null,
        finish: [Function (anonymous)]
      }
    },
    writable: false,
    allowHalfOpen: true,
    _transformState: {
      afterTransform: [Function: bound afterTransform],
      needTransform: true,
      transforming: false,
      writecb: null,
      writechunk: null,
      writeencoding: null
    },
    _destroyed: false,
    _transform: [Function: forward],
    _flush: [Function: flush],
    [Symbol(kCapture)]: false
  },
  domainThrown: false
}

Exited with code exit status 1

Related:

It was due to the fact that the file was not written, and wasn’t available.

All I had to do was re-run the test, but also ensured that the filepath was correct.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.