Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Every command I run results in Error: Arguments to path.resolve must be strings #954

Closed
duro opened this issue Jan 21, 2015 · 1 comment
Closed

Comments

@duro
Copy link

duro commented Jan 21, 2015

I have tired installing locally and using npm run as well as globally, and even running pm2 list results in this error.

path.js:313
        throw new TypeError('Arguments to path.resolve must be strings');
              ^
TypeError: Arguments to path.resolve must be strings
    at Object.exports.resolve (path.js:313:15)
    at Object.<anonymous> (/usr/local/lib/node_modules/pm2/constants.js:16:21)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/pm2/lib/Satan.js:16:15)
    at Module._compile (module.js:456:26)

I am running node version v0.10.35 and npm 2.1.18

At a loss for why this might be occurring. Any thoughts on how I could debug.

@duro
Copy link
Author

duro commented Jan 21, 2015

Looks like my problem was that my HOME env var was not set (as I was running this inside a pretty lean Docker container).

That being said, perhaps a more meaningful Error message could be output for this case.

@duro duro closed this as completed Jan 21, 2015
Unitech pushed a commit that referenced this issue Jan 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant