internal/validators.js:124 throw new ERR_INVALID_ARG_TYPE(name, 'string', value); ^ TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined: nodejs code example
Example: node js TypeError [ERR_INVALID_ARG_TYPE]: The argument must be of type string. Received undefined
1) install cucumber as project local package, rather than global package.
npm install -S cucumber