shama / napa

:wine_glass: A helper for installing stuff without a package.json with npm.
MIT License
413 stars 34 forks source link

'Path must be a string' Type Error #55

Closed caseyWebb closed 9 years ago

caseyWebb commented 9 years ago
path.js:8
    throw new TypeError('Path must be a string. Received ' +
    ^

TypeError: Path must be a string. Received undefined
    at assertPath (path.js:8:11)
    at Object.posix.join (path.js:477:5)
    at new NapaPkg (/Users/casey/Code/napa/lib/pkg.js:23:25)
    at /Users/casey/Code/napa/cli.js:22:15
    at Array.forEach (native)
    at Object.napa.cli (/Users/casey/Code/napa/cli.js:19:8)
    at Object.<anonymous> (/Users/casey/Code/napa/bin/napa:3:22)
    at Module._compile (module.js:434:26)
    at Object.Module._extensions..js (module.js:452:10)
    at Module.load (module.js:355:32)

Attributed to some variables missing var

caseyWebb commented 9 years ago

Fixed via https://github.com/shama/napa/pull/56