[Solved] Nrm Error: internal validators.js 124 throw new ERR_INVALID_ARG_TYPE(name, ‘string’, value);

1. Windows finds the directory where nrm is located


The cli.js file under the installation path of nrm

2. Open the cli.js file

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

3. Save it.

nrm ls successfully executed

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *