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.

Fails to use node binary in Windows.

See original GitHub issue

Following code breaks windows path like C:\\Program Files (x86)\\Nodist\\v-x64\\8.2.1\\node.exe.

https://github.com/okonet/lint-staged/blob/58ea81805272acd89bf23c98b8c1a88ad343456d/src/findBin.js#L35

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
sudo-suhascommented, Sep 19, 2017
1reaction
sudo-suhascommented, Sep 19, 2017

I followed the linked issue and took a look at this - https://github.com/kentcdodds/kcd-scripts/blob/master/src/config/lintstagedrc.js. I think this issue can be fixed with a path.isAbsolute(cmd) check. @okonet What do you think?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to resolve 'node' is not recognized as an internal or ...
Open the Environment Variables option in your Control Panel. · Select the variable named Path. · Restart the command prompt again and now...
Read more >
Installing Node.js (and npm) on Windows 10 - Stack Overflow
Install it anywhere you want, by default: C:\Program Files\nodejs; Control Panel -> System -> Advanced system settings -> Environment Variables; Select PATH and ......
Read more >
NodeInstaller fails at renameTo Node Binary with existing ...
The NodeInstaller.java fails to update an existing NodeJS version (Node.exe) using the renameTo function. The task fails. If I delete the node ......
Read more >
[Windows][Node.js] Cannot install Node.js 10.x via NVS
The error is: Using NVS for managing Node.js versions on Windows (BETA) 0.62s$ git clone --single-branch ... Failed to setup node binary.
Read more >
Set up NodeJS on native Windows - Microsoft Learn
This includes deleting any existing nodejs installation directories (e.g., "C:\Program Files\nodejs") that might remain. NVM's generated symlink ...
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