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.

[Bug]: Windows Environment Setup

See original GitHub issue
  1. yarn build error on Windows:
carbon-components: ./tools/copy-vendor-styles.sh: 2: ./tools/copy-vendor-styles.sh:
carbon-components: : not found
carbon-components: ./tools/copy-vendor-styles.sh: 11: ./tools/copy-vendor-styles.sh:
carbon-components: : not found
carbon-components: ./tools/copy-vendor-styles.sh: 12: set: Illegal option -
lerna ERR! yarn run build exited 2 in 'carbon-components'
  1. GitHub Desktop error when commiting:
.husky/pre-commit: line 4: npx: command not found
husky - pre-commit hook exited with code 127 (error)

Environment:

  • Windows 10
  • Node v16.14.0
  • WSL (Ubuntu 18.04 LTS)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
NashJamescommented, Mar 25, 2022

That did it. Cheers @tay1orjones.

Tested it with the add-contributor stuff on my open PR.

I suppose I should add some text to the windows doc about commiting? Seems there’s a few open issues on github desktop about adding a --no-verify option, but it hasn’t been picked up in over a year so could be a while.

1reaction
NashJamescommented, Mar 11, 2022

No problem.

I am using nvm. And I haven’t tested other apps interacting with WSL, I had no reason for it before Carbon.

npx works fine in WSL.

I had seen those docs beforehand but it was not an available option in the shell dropdown which I thought was odd. I saw this and noticed they have a beta version of the app, which I tried this morning and does have WSL as an available option. The error did change, but it is still not any significant help.

/bin/bash: D:/Program Files/nodejs/npx: No such file or directory
husky - pre-commit hook exited with code 127 (error)

I also found a few other issues with suggestions, but some didn’t work at all, and others only created different errors. Here had a few good ones. The npx -> npx.cmd gave this:

/c/Users/james/AppData/Roaming/npm/npx: line 5: cygpath: command not found
/c/Users/james/AppData/Roaming/npm/npx: line 11: exec: node: not found
husky - pre-commit hook exited with code 127 (error)

There seems to be a lot of issues around on this topic, it may be that Windows is not an option until Husky or GitHub Desktop propose a fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to troubleshoot Windows Installer errors - Microsoft Support
Describes how to troubleshoot problems that occur when you install, uninstall, or upgrade a program on a Windows-based computer by using Windows Installer....
Read more >
Advanced troubleshooting for Windows boot problems
Learn to troubleshoot when Windows can't boot. This article includes advanced troubleshooting techniques intended for use by support agents ...
Read more >
Windows 10 upgrade issues troubleshooting - Microsoft Learn
Understanding the Windows 10 upgrade process can help you troubleshoot errors when something goes wrong. Find out more with this guide.
Read more >
MSI BUG in Windows 10?: PATH env var not updated by MSI ...
I'm seeing different behavior when installing a software package under Windows 10 versus under previous versions of Windows.
Read more >
Fix problems that block programs from being installed or ...
The Program Install and Uninstall troubleshooter helps you automatically repair ... If you're having problems with an app you got from Microsoft Store, ......
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