[Bug]: Windows Environment Setup
See original GitHub issueyarn 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'
- 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:
- Created 2 years ago
- Reactions:1
- Comments:5 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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.
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: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.