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

边栏推荐
- Postman接口测试实战,这5个问题你一定要知道
- How to open an account online? Is it safe to open a mobile account?
- JDBC | Chapter 4: transaction commit and rollback
- burp 安装 license key not recognized
- 什么叫在线开户?现在网上开户安全么?
- An analysis of the past and present life of the meta universe
- Share several map bed websites for everyone to share pictures
- Research Report on the overall scale, major manufacturers, major regions, products and applications of metal oxide arresters in the global market in 2022
- Properties of expectation and variance
- c语言链表--待补充
猜你喜欢

Resunnet - tensorrt8.2 Speed and Display record Sheet on Jetson Xavier NX (continuously supplemented)

Jetson XAVIER NX上ResUnet-TensorRT8.2速度與顯存記錄錶(後續不斷補充)

How to realize the function of detecting browser type in Web System

Taiwan SSS Xinchuang sss1700 replaces cmmedia cm6533 24bit 96KHz USB audio codec chip

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

I did a craniotomy experiment: talk about macromolecule coding theory and Lao Wang's fallacy from corpus callosum and frontal leukotomy

HDL design peripheral tools to reduce errors and help you take off!

After 65 days of closure and control of the epidemic, my home office experience sharing | community essay solicitation

B-end e-commerce - reverse order process

Burp install license key not recognized
随机推荐
[fluent] dart function (function composition | private function | anonymous function | function summary)
励志!大凉山小伙全奖直博!论文致谢看哭网友
[daily question] 241 Design priorities for operational expressions
Summary of interview experience, escort your offer, full of knowledge points
功能、作用、效能、功用、效用、功效
【Hot100】21. 合并两个有序链表
Interested parties add me for private chat
Web3js method to obtain account information and balance
【Kubernetes系列】kubeadm reset初始化前后空间、内存使用情况对比
JS modularization
在券商账户上买基金安全吗?哪里可以买基金
Development skills of rxjs observable custom operator
疫情封控65天,我的居家办公心得分享 | 社区征文
笔记本安装TIA博途V17后出现蓝屏的解决办法
The first of the classic quotations of correspondents is heartbreaking
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)
I would like to ask what securities dealers recommend? Is it safe to open a mobile account?
[QT] QPushButton creation
Research Report on the overall scale, major manufacturers, major regions, products and applications of metal oxide arresters in the global market in 2022
【Hot100】23. 合并K个升序链表