当前位置:   article > 正文

nrm安装使用报错 internal/validators.js:124 throw new ERR_INVALID_ARG_TYPE(name, ‘string‘, value)--解决方案_http-server throw new err_invalid_arg_type(name, '

http-server throw new err_invalid_arg_type(name, 'string', value);

报错内容

  1. C:\Users\user>nrm test
  2. internal/validators.js:124
  3. throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
  4. ^
  5. [TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
  6. at validateString (internal/validators.js:124:11)
  7. at Object.join (path.js:375:7)
  8. at Object.<anonymous> (D:\ProgramFiles\nvm\v14.16.0\node_modules\nrm\cli.js:17:20)
  9. at Module._compile (internal/modules/cjs/loader.js:1063:30)
  10. at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
  11. at Module.load (internal/modules/cjs/loader.js:928:32)
  12. at Function.Module._load (internal/modules/cjs/loader.js:769:14)
  13. at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
  14. at internal/main/run_main_module.js:17:47
  15. ] {
  16. code: 'ERR_INVALID_ARG_TYPE'
  17. }

本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号