当前位置:网站首页>Internal/validators js:124 throw new ERR_ INVALID_ ARG_ Type (name, 'string', value) -- solution
Internal/validators js:124 throw new ERR_ INVALID_ ARG_ Type (name, 'string', value) -- solution
2022-07-02 20:33:00 【JackieDYH】
Wrong content
C:\Users\user>nrm test
internal/validators.js:124
throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
^
[TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
at validateString (internal/validators.js:124:11)
at Object.join (path.js:375:7)
at Object.<anonymous> (D:\ProgramFiles\nvm\v14.16.0\node_modules\nrm\cli.js:17:20)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47
] {
code: 'ERR_INVALID_ARG_TYPE'
}
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
- 17.
- 18.
-> install nrm-
Solution
find nvm Folder installation location , open cli.js The first 17 Line to
Be careful : Everyone's address may be different , This is my file address - ( own node Installed directory ...\v14.16.0\node_modules\nrm)
//const NRMRC = path.join(process.env.HOME, '.nrmrc'); // notes
const NRMRC = path.join(process.env[(process.platform == 'win32') ? 'USERPROFILE' : 'HOME'], '.nrmrc'); // increase
- 1.
- 2.
Test after saving
边栏推荐
- I want to ask you, where is a better place to open an account in Dongguan? Is it safe to open a mobile account?
- [fluent] dart technique (independent main function entry | nullable type determination | default value setting)
- at编译环境搭建-win
- Research Report on the overall scale, major manufacturers, major regions, products and applications of sliding door dampers in the global market in 2022
- 【实习】解决请求参数过长问题
- Function, function, efficiency, function, utility, efficacy
- 【Hot100】21. Merge two ordered linked lists
- Research Report on the overall scale, major manufacturers, major regions, products and application segmentation of precoated metallic coatings in the global market in 2022
- At compilation environment setup -win
- 在消费互联网时代,诞生了为数不多的头部平台的话
猜你喜欢
Driverless learning (4): Bayesian filtering
JASMINER X4 1U deep disassembly reveals the secret behind high efficiency and power saving
In depth understanding of modern web browsers (I)
Istio deployment: quickly start microservices,
CRM客户关系管理系统
upload-labs
JDBC | Chapter 4: transaction commit and rollback
c语言链表--待补充
Database schema notes - how to choose the right database in development + who invented relational database?
Wu Enda's machine learning mind mapping insists on clocking in for 23 days - building a knowledge context, reviewing, summarizing and replying
随机推荐
Esp32c3 crash analysis
Data preparation for behavior scorecard modeling
Overview of browser caching mechanism
【Kubernetes系列】kubeadm reset初始化前后空间、内存使用情况对比
B-end e-commerce - reverse order process
JASMINER X4 1U deep disassembly reveals the secret behind high efficiency and power saving
【Hot100】22. bracket-generating
疫情封控65天,我的居家办公心得分享 | 社区征文
Basic concept of database, installation and configuration of database, basic use of MySQL, operation of database in the project
【Hot100】21. Merge two ordered linked lists
An analysis of the past and present life of the meta universe
为什么我对流程情有独钟?
Codeforces round 651 (Div. 2) (a thinking, B thinking, C game, D dichotomy, e thinking)
Research Report on the overall scale, major manufacturers, major regions, products and applications of metal oxide arresters in the global market in 2022
Interested parties add me for private chat
Research Report on the overall scale, major manufacturers, major regions, products and applications of micro hydraulic cylinders in the global market in 2022
【871. 最低加油次数】
Outsourcing for three years, abandoned
Research Report on the overall scale, major manufacturers, major regions, products and application segmentation of signal distributors in the global market in 2022
Solution to blue screen after installing TIA botu V17 in notebook