Fails in windows
nanaeasiedu opened this issue · comments
Eugene Asiedu commented
The command npmrc
fails in windows because there is no any environment variable HOME
set in windows.
Using process.env.HOME || process.env.USERPROFILE
on lines 7 and 8 may resolve this issue.
C:\Users\Ngene>npmrc
path.js:204
throw new TypeError('Arguments to path.join must be strings');
^
TypeError: Arguments to path.join must be strings
at f (path.js:204:15)
at Object.filter (native)
at Object.exports.join (path.js:209:40)
at Object.<anonymous> (C:\Users\Ngene\AppData\Roaming\npm\node_modules\npmrc\npmrc.js:7:51)
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 Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
Tim Kevin Oxley commented
@ngenerio care to submit a pull request?
Eugene Asiedu commented
@timoxley I submitted the pull request.
Tim Kevin Oxley commented
👍