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: ENOENT: no such file or directory, open 'F:\Flat Projects\aquasoft\$GIT_PARAMS' on Windows

See original GitHub issue

Hello, I am presented with this error when calling the script "commitmsg ":"commitlint -e $GIT_PARAMS".

I do not know if any other configuration is required that I do not know.

I hope you can help me, and thank you very much in advance.

image

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:17 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
marioneblcommented, Dec 5, 2017

Released via 5.2.3

2reactions
marioneblcommented, Nov 22, 2017

Okay, we’ll have to implement a rather grungy fix for this, along the lines of

function normalizeEdit(edit) {
  if (typeof edit === 'boolean') {
     return edit;
  }
  if (edit === '$GIT_PARARMS' || edit === '%GIT_PARAMS%') {
    if (!'GIT_PARAMS' in process.env) {
       throw new Error(`Received ${edit} as value for -e | --edit, but GIT_PARAMS is not available globally.`);
    }
    return process.env.GIT_PARAMS;
  }
  return edit;
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: ENOENT: no such file or directory, open When trying to ...
When I make a post request on postman, it says in the console that it can't read a path that doesn't exist (which...
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