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

边栏推荐
- CRM Customer Relationship Management System
- 接口测试到底怎么做?看完这篇文章就能清晰明了
- [JS] get the search parameters of URL in hash mode
- burp 安装 license key not recognized
- Attack and defense world PWN question: Echo
- An analysis of the past and present life of the meta universe
- 【每日一题】241. 为运算表达式设计优先级
- Driverless learning (III): Kalman filter
- Basic concept of database, installation and configuration of database, basic use of MySQL, operation of database in the project
- API文档工具knife4j使用详解
猜你喜欢

An analysis of the past and present life of the meta universe

Overview of browser caching mechanism

sql-labs

Exemple complet d'enregistrement du modèle pytoch + enregistrement du modèle pytoch seuls les paramètres d'entraînement sont - ils enregistrés? Oui (+ Solution)

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

Why do I have a passion for process?

GCC: Graph Contrastive Coding for Graph Neural NetworkPre-Training
![[NLP] a detailed generative text Abstract classic paper pointer generator](/img/d8/a367c26b51d9dbaf53bf4fe2a13917.png)
[NLP] a detailed generative text Abstract classic paper pointer generator

八年测开经验,面试28K公司后,吐血整理出高频面试题和答案

AcWing 340. Solution to communication line problem (binary + double ended queue BFS for the shortest circuit)
随机推荐
Sometimes only one line of statements are queried, and the execution is slow
Research Report on the overall scale, major manufacturers, major regions, products and applications of metal oxide arresters in the global market in 2022
[source code analysis] model parallel distributed training Megatron (5) -- pipestream flush
功能、作用、效能、功用、效用、功效
面试经验总结,为你的offer保驾护航,满满的知识点
外包干了三年,废了...
Wu Enda's machine learning mind mapping insists on clocking in for 23 days - building a knowledge context, reviewing, summarizing and replying
Web3js method to obtain account information and balance
Jetson XAVIER NX上ResUnet-TensorRT8.2速度与显存记录表(后续不断补充)
Function, function, efficiency, function, utility, efficacy
【JS】获取hash模式下URL的搜索参数
攻防世界pwn题:Recho
Research Report on the overall scale, major manufacturers, major regions, products and application segmentation of multi-channel signal conditioners in the global market in 2022
How to do interface testing? After reading this article, it will be clear
After 65 days of closure and control of the epidemic, my home office experience sharing | community essay solicitation
什么叫在线开户?现在网上开户安全么?
Outsourcing for three years, abandoned
Second hand housing data analysis and prediction system
【Hot100】23. Merge K ascending linked lists
API documentation tool knife4j usage details