Failure when building docker image



I have a Dockerfile which I have been using to build my images locally and manually distribute to the environments necessary. Today I attempted to test out if Buddy would be able to handle this task for me and to my delight, it seems perfectly capable of doing so.

However, when I run the pipeline for building the image it fails with:

Error: could not get uid/gid

[ 'nobody', 0 ]

    at /usr/lib/node_modules/npm/node_modules/uid-number/uid-number.js:37:16

    at ChildProcess.exithandler (child_process.js:283:5)

    at emitTwo (events.js:126:13)

    at ChildProcess.emit (events.js:214:7)

    at maybeClose (internal/child_process.js:915:16)

    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

TypeError: Cannot read property 'get' of undefined

    at errorHandler (/usr/lib/node_modules/npm/lib/utils/error-handler.js:205:18)

    at /usr/lib/node_modules/npm/bin/npm-cli.js:78:20

    at cb (/usr/lib/node_modules/npm/lib/npm.js:228:22)

    at /usr/lib/node_modules/npm/lib/npm.js:266:24

    at /usr/lib/node_modules/npm/lib/config/core.js:83:7

    at Array.forEach (<anonymous>)

    at /usr/lib/node_modules/npm/lib/config/core.js:82:13

    at f (/usr/lib/node_modules/npm/node_modules/once/once.js:25:25)

    at afterExtras (/usr/lib/node_modules/npm/lib/config/core.js:173:20)

    at Conf.<anonymous> (/usr/lib/node_modules/npm/lib/config/core.js:231:22)


  if (npm.config.get('json')) {


TypeError: Cannot read property 'get' of undefined

    at process.errorHandler (/usr/lib/node_modules/npm/lib/utils/error-handler.js:205:18)

    at emitOne (events.js:116:13)

    at process.emit (events.js:211:7)

    at process._fatalException (bootstrap_node.js:391:26)

The error is of course an issue with the npm.config object during the build but I’m not exactly sure what might be the issue considering I am using docker and well…docker is meant to prevent this type of thing.

Has anyone experienced this issue before?


Hi there,

The library you are using ( changes the username from the system to your ID. The error it returns is:

Error: could not get uid/gid [ 'nobody', 0 ]

So you are entering the user nobody which probably isn’t in the Docker image – that’s where the error comes from.

However, if you still encounter this problem please send the URL to this pipeline to .