Getting an error -[ERR_INVALID_ARG_TYPE]: The "path" argument

What version of npm and node are you using.
Also what is the command you are trying to run.