安装nrm 后执行报错TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string

 

1、在命令行执行命令,npm install -g nrm,全局安装nrm

2、nrm ls 查看版本报错

 

 

 看到我把报错路径没

打开路径找到cli.js文件

3、修改

const NRMRC = path.join(process.env[(process.platform == 'win32') ? 'USERPROFILE' : 'HOME'], '.nrmrc');

 

 

4、再次查看

 

posted @ 2021-05-26 14:34  树叶铃铛  阅读(2948)  评论(1编辑  收藏  举报