当前位置:网站首页>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

边栏推荐
- 想请教一下,我在东莞,到哪里开户比较好?手机开户是安全么?
- 通信人的经典语录,第一条就扎心了……
- After eight years of test experience and interview with 28K company, hematemesis sorted out high-frequency interview questions and answers
- 在券商账户上买基金安全吗?哪里可以买基金
- Self-Improvement! Daliangshan boys all award Zhibo! Thank you for your paper
- Complete example of pytorch model saving +does pytorch model saving only save trainable parameters? Yes (+ solution)
- 【实习】解决请求参数过长问题
- Istio deployment: quickly start microservices,
- ROS learning (10): ROS records multiple topic scripts
- Research Report on the overall scale, major manufacturers, major regions, products and application segmentation of signal distributors in the global market in 2022
猜你喜欢

Sometimes only one line of statements are queried, and the execution is slow

How to do interface testing? After reading this article, it will be clear

JDBC | Chapter 4: transaction commit and rollback

Cs5268 perfectly replaces ag9321mcq typec multi in one docking station solution

Data preparation for behavior scorecard modeling

Database schema notes - how to choose the right database in development + who invented relational database?

测试人员如何做不漏测?这7点就够了

【每日一题】241. 为运算表达式设计优先级

Resunet tensorrt8.2 speed and video memory record table on Jetson Xavier NX (continuously supplemented later)

SBT tutorial
随机推荐
I did a craniotomy experiment: talk about macromolecule coding theory and Lao Wang's fallacy from corpus callosum and frontal leukotomy
疫情封控65天,我的居家办公心得分享 | 社区征文
Research Report on the overall scale, major manufacturers, major regions, products and application segmentation of shock absorber oil in the global market in 2022
Talk about macromolecule coding theory and Lao Wang's fallacy from the perspective of evolution theory
Cron表达式(七子表达式)
[cloud native topic -50]:kubesphere cloud Governance - operation - step by step deployment of microservice based business applications - database middleware MySQL microservice deployment process
在消费互联网时代,诞生了为数不多的头部平台的话
JDBC | Chapter 3: SQL precompile and anti injection crud operation
分享几个图床网址,便于大家分享图片
「 工业缺陷检测深度学习方法」最新2022研究综述
Research Report on the overall scale, major manufacturers, major regions, products and application segmentation of signal distributors in the global market in 2022
Select function
Cs5268 perfectly replaces ag9321mcq typec multi in one docking station solution
at编译环境搭建-win
Implementing yolox from scratch: dataset class
Wu Enda's machine learning mind mapping insists on clocking in for 23 days - building a knowledge context, reviewing, summarizing and replying
【Hot100】21. Merge two ordered linked lists
Highly qualified SQL writing: compare lines. Don't ask why. Asking is highly qualified..
Attack and defense world PWN question: Echo
pytorch 模型保存的完整例子+pytorch 模型保存只保存可训练参数吗?是(+解决方案)