Closed happy-func closed 3 years ago
I had the same problem
平台win10
节点14.15.1
最低价 内部/validators.js:124 throw new ERR_INVALID_ARG_TYPE(name, ' string ' , value) ; [TypeError [ERR_INVALID_ARG_TYPE]:“路径”参数必须是字符串类型。收到未定义 在validateString (internal/validators.js:124:11) 在 Object.join (path.js:375:7) 在对象。<匿名>(C:\用户\Ž ZX \ A ppData \漫游\ n时\ n ode_modules \ n RM \ C li.js:17:20) 在 Module._compile (internal/modules/cjs/loader.js:1063:30) 在 Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10) 在 Module.load (internal/modules/cjs/loader.js:928:32) 在 Function.Module._load (internal/modules/cjs/loader.js:769:14) 在 Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) 在内部/main/run_main_module.js:17:47 ] { 代码:' ERR_INVALID_ARG_TYPE ' }
可以试一下在 我的电脑->环境变量 中设置一个HOME的系统变量,指向.nrmrc文件这一层,默认是 C:\Users\xxxx,看了他的源码 应该是读取process.env.HOME的时候没获取到这个环境变量。
好的,回头搞一下看看
你好坏啊,改了一行代码都要发个npm包。。
作者不更新,怪不得人家开新包呀.
plateform win10 node 14.15.1