当前位置:网站首页>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 
边栏推荐
- asp. Net to search products and realize paging function
- 块级元素上下左右居中的两个小技巧
- Is it reliable for flush to register and open an account? Is it safe?
- Dataset filling data, and the use of rows and columns
- Prometheus monitoring (I)
- Oracle view all tablespaces in the current library
- Ambari (IX) --- use expect to realize no interaction in ambri server setup phase (valid for personal test)
- Introduction, compilation, installation and deployment of Doris learning notes
- Redis cluster deployment and application scenarios
- [JS] - [throttling and anti shake function]
猜你喜欢

HJ prime factor

MySQL two table connection principle (understand join buf)

ROS notes (09) - query and setting of parameters

Introduction, compilation, installation and deployment of Doris learning notes

SQL Master slave Replication Build

Ambari (VIII) --- ambari integrated impala document (valid for personal test)

SOC serial port configuration

Prometheus monitoring (I)

Online WPS tool

Airflow2.1.1 ultra detailed installation document
随机推荐
SOC serial port configuration
【学习笔记】搜索
B_QuRT_User_Guide(27)
安装nrm后,使用nrm命令报错internal/validators.js:124 throw new ERR_INVALID_ARG_TYPE(name, ‘string‘, value)
Introduction to kubernetes (I)
Study notes 22/1/17
SLAM中常用的雅克比矩阵J
Dataset filling data, and the use of rows and columns
HJ base conversion
券商注册开户靠谱吗?安全吗?
Prometheus deployment alarm docking QQ mailbox
Update pip to the latest version
AI首席架构师8-AICA-高翔 《深入理解和实践飞桨2.0》
MySQL row format parsing
Jenkins' common build trigger and hook services (V)
ROS notes (08) - definition and use of service data
图像翻译:UVCGAN: UNET VISION TRANSFORMER CYCLE-CONSISTENT GAN FOR UNPAIRED IMAGE-TO-IMAGE TRANSLATION
[shangpinhui] project notes
Is it reliable to open an account by digging money? Is it safe?
你了解TCP協議嗎(二)?