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

TypeError: path must be a string #1

Closed
janl opened this Issue Jul 31, 2015 · 5 comments

Comments

Projects
None yet
2 participants
@janl

janl commented Jul 31, 2015

Latest nmo via npm.

> nmo -h
ERR! path must be a string 
ERR! TypeError: path must be a string
ERR!     at Object.fs.open (fs.js:430:11)
ERR!     at Object.fs.readFile (fs.js:207:6)
ERR!     at ConfigChain.addFile (/usr/local/lib/node_modules/nmo/node_modules/config-chain/index.js:196:6)
ERR!     at /usr/local/lib/node_modules/nmo/lib/config.js:85:48
ERR!     at tryCatcher (/usr/local/lib/node_modules/nmo/node_modules/bluebird/js/main/util.js:24:31)
ERR!     at Promise._resolveFromResolver (/usr/local/lib/node_modules/nmo/node_modules/bluebird/js/main/promise.js:427:31)
ERR!     at new Promise (/usr/local/lib/node_modules/nmo/node_modules/bluebird/js/main/promise.js:53:37)
ERR!     at Object.load (/usr/local/lib/node_modules/nmo/lib/config.js:75:10)
ERR!     at /usr/local/lib/node_modules/nmo/lib/nmo.js:53:12
ERR!     at tryCatcher (/usr/local/lib/node_modules/nmo/node_modules/bluebird/js/main/util.js:24:31)
ERR!     at Promise._resolveFromResolver (/usr/local/lib/node_modules/nmo/node_modules/bluebird/js/main/promise.js:427:31)
ERR!     at new Promise (/usr/local/lib/node_modules/nmo/node_modules/bluebird/js/main/promise.js:53:37)
ERR!     at Object.load (/usr/local/lib/node_modules/nmo/lib/nmo.js:52:10)
ERR!     at Object.<anonymous> (/usr/local/lib/node_modules/nmo/bin/nmo-cli.js:17:5)
ERR!     at Module._compile (module.js:456:26)
ERR!     at Object.Module._extensions..js (module.js:474:10)
ERR! 
ERR! 
ERR! nmo: 1.0.0 node: v0.10.36
ERR! please open an issue including this log on https://github.com/robertkowalski/nmo/issues
@janl

This comment has been minimized.

Show comment
Hide comment
@janl

janl Jul 31, 2015

To be clear: any command produces this error.

janl commented Jul 31, 2015

To be clear: any command produces this error.

@janl

This comment has been minimized.

Show comment
Hide comment
@janl

janl Jul 31, 2015

the latest git version seems to work

janl commented Jul 31, 2015

the latest git version seems to work

@janl

This comment has been minimized.

Show comment
Hide comment
@janl

janl Jul 31, 2015

This is on Mac, works fine on Linux with Node 0.12

janl commented Jul 31, 2015

This is on Mac, works fine on Linux with Node 0.12

robertkowalski added a commit that referenced this issue Jul 31, 2015

explicitly look in home directory
nvm installs node/npm and global modules into a subfolder in the
users home. if you use the official nodejs installer it gets
placed in /user/local - so the recursivve directory walker of
config chain can't find it as it reaches / without passing the
home dir

fixes #1
@robertkowalski

This comment has been minimized.

Show comment
Hide comment
@robertkowalski

robertkowalski Jul 31, 2015

Owner

aw, did not fail on travis as travis also uses nvm for managing node installations - d'oh!

#2 has a fix

Owner

robertkowalski commented Jul 31, 2015

aw, did not fail on travis as travis also uses nvm for managing node installations - d'oh!

#2 has a fix

@robertkowalski

This comment has been minimized.

Show comment
Hide comment
@robertkowalski

robertkowalski Aug 1, 2015

Owner

fix published as part of 1.0.1 - thanks for the detailed bug report for a very huge bug :)

Owner

robertkowalski commented Aug 1, 2015

fix published as part of 1.0.1 - thanks for the detailed bug report for a very huge bug :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment