当前位置:网站首页>After installing NRM, the internal/validators js:124 throw new ERR_ INVALID_ ARG_ TYPE(name, ‘string‘, value)
After installing NRM, the internal/validators js:124 throw new ERR_ INVALID_ ARG_ TYPE(name, ‘string‘, value)
2022-06-28 08:12:00 【Mediocrity and laziness】
Recently, you need to switch between different npm Source , Because there are private , It would be very troublesome to reconfigure , Then I installed one nrm, However, an error is reported when the installation is completed . The error is shown in the figure :
At this time, you have to check node、npm Is there a problem , If there is no problem, look at this line of mistakes at Object.<anonymous> (D:\Node.js\node_global\node_modules\nrm\cli.js:17:20)
Then open according to this path cli.js file , This is the third line below js file 
According to the error report, you can know that it is No 17 There's something wrong with it , At this time, we need to 17 Change the line code to the following code :
// const NRMRC = path.join(process.env.HOME, '.nrmrc');
const NRMRC = path.join(process.env[(process.platform == 'win32') ? 'USERPROFILE' : 'HOME'], '.nrmrc');
It's opening at this time cmd Input nrm ls You can see the information about the relevant source 
边栏推荐
- Chenglian premium products donated love materials for flood fighting and disaster relief to Yingde
- Configuring MySQL multi instance master-slave synchronization for Linux
- Children's unit of 2022 Paris fashion week ended successfully at Wuhan station on June 19
- Ambari (VI) -- ambari API use
- B_ QuRT_ User_ Guide(27)
- asp. Net registration page
- 设置网页的标题部分的图标
- About RAC modifying scan IP
- How redis solves cache avalanche, breakdown and penetration problems
- 探讨gis三维系统在矿山行业中的应用
猜你喜欢

22/02/15 study notes

Redis cerebral fissure

Reverse mapping of anonymous pages

ROS notes (09) - query and setting of parameters

HJ prime factor

asp. Net datalist to display product information and pictures

安装nrm后,使用nrm命令报错internal/validators.js:124 throw new ERR_INVALID_ARG_TYPE(name, ‘string‘, value)

SOC serial port configuration

B_QuRT_User_Guide(28)

Redis cluster deployment and application scenarios
随机推荐
Unity - use of API related to Pico development input system ---c
Redis cerebral fissure
【学习笔记】差分约束
Ambari (V) ---ambari integrated Azkaban (valid for personal test)
挖财注册开户靠谱吗?安全吗?
About ASM disk space full, clean up ASM disk
Unity - Pico开发 输入系统等相关API的使用---C#篇
Redis master-slave structure and application scenarios
HJ prime factor
Explanation and application of instr() function in Oracle
PLSQL installation under Windows
ROS notes (08) - definition and use of service data
About RAC modifying scan IP
B_ QuRT_ User_ Guide(28)
npm清理缓存
Doris学习笔记之介绍、编译安装与部署
设置网页的标题部分的图标
Generation and verification of JWT token
asp. Net datalist when there are multiple data displays
Prometheus monitoring (I)