nrm运行出错internal/validators.js:124 throw new ERR_INVALID_ARG_TYPE(name, ‘string‘, value);
在nrm安装目录下,找到cli.js文件,修改:注释掉第十七行,改为下面代码未注释的即可;
//const NRMRC = path.join(process.env.HOME, '.nrmrc');
const NRMRC = path.join(process.env[(process.platform == 'win32') ? 'USERPROFILE' : 'HOME'], '.nrmrc');