Perl locale issue when running npm/npx commands #3583
Unanswered
jonnott
asked this question in
Help needed
Replies: 1 comment 14 replies
-
This is a problem of your shell env for remote_user. Try the next: |
Beta Was this translation helpful? Give feedback.
14 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm deploying (with deployer v7) to a cPanel CentOS server..
Linux version 3.10.0-1160.71.1.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) )
I am getting errors like this whenever I run
npm ci
ornpx mix
from deployer (yes, it's for a Laravel app)When I run
locale
locally (Mac OS) and on the server, the results are essentially the same:Remote:
LANG=en_GB.UTF-8
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=
Local:
LANG="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_CTYPE="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_ALL=
I've read things saying local environment vars for this may (or may not) get passed to the remote server when connecting via ssh.
Something obviously not right.
FWIW, I've upgraded from deployer v6 to v7, and this wasn't a problem under v6 :(
Jon
Beta Was this translation helpful? Give feedback.
All reactions