question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error on "readme" command : TypeError [ERR_INVALID_ARG_TYPE]

See original GitHub issue

When I try to use the “readme” command it returns this error that I may have found in several Issue on other repo but none of the solutions are useful here :

⠋ Gathering project infosreadme [template]

Generate README.md from a template

Positionals:
  template  The name of template you want to use             [défaut: "default"]

Options:
  --version  Affiche le numéro de version                              [booléen]
  --help     Affiche de l'aide                                         [booléen]

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
    at validateString (internal/validators.js:107:11)
    at Object.basename (path.js:1149:5)
    at module.exports (/usr/local/lib/node_modules/readme-md-generator/node_modules/project-name/index.js:8:47)
    at Object.getProjectInfos (/usr/local/lib/node_modules/readme-md-generator/src/project-infos.js:106:16)
    at async mainProcess (/usr/local/lib/node_modules/readme-md-generator/src/cli.js:46:31)

Thank you !

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
kefranabgcommented, Jun 15, 2019

Fixed in last release

1reaction
Akecelcommented, Jun 15, 2019

Thank you very much! I look forward to trying your tool it looks really good

Read more comments on GitHub >

github_iconTop Results From Across the Web

ERR_INVALID_ARG_TYPE · Issue #22630 · nodejs/node
TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received type undefined at Module.require (internal/modules/cjs/ ...
Read more >
gitbook init Error - The "data" argument must be - Stack Overflow
gitbook init Error: TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument ... However, gitbook build and gitbook serve commands work anyway.
Read more >
typeerror [err_invalid_arg_type]: the "data" argument must be ...
I receive this error: UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of ...
Read more >
TypeError [ERR_INVALID_ARG_TYPE] in appchain-truffle-box
I followed the README file of the Appchain truffle box repo. And when I try to run npm run migrate. I got the...
Read more >
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument ...
After saving the file getting Error: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found