Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npx package using utf-8 in git bash

I'm using git bash on windows 10 to run Node js with nvm (node version manager) and I have a problem with the npx package. For some reason npx has utf-8 encoding in it's output in cli containing cyrillic characters which git bash displays like this:

╨Э╤Г╨╢╨╜╨╛ ╤Г╨║╨░╨╖╨░╤В╤М ╨║╨╛╨╝╨░╨╜╨┤╤Г

I've tried installing different versions on node and npm and I've tried installing them without nvm. Node and npm use only English, but npx installs each time with cyrillic locale.

Is there a way to change npx locale, or fix it's rendering in git bash? Thanks!

like image 579
Levy Boo Avatar asked May 21 '26 17:05

Levy Boo


1 Answers

Git Bash designed mainly for Git. Therefore, using Git Bash for running npm (node command) is not really good practice.

Use CMD and no problem happen.

like image 197
Do Nhu Vy Avatar answered May 23 '26 07:05

Do Nhu Vy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!