gpt4 book ai didi

javascript - 终端输出 : manpath: can't set the locale; make sure $LC_* and $LANG are correct

转载 作者:行者123 更新时间:2023-12-05 01:33:38 25 4
gpt4 key购买 nike

在尝试运行特定的 bash 脚本时,我得到以下输出:

manpath: can't set the locale; make sure $LC_* and $LANG are correct
Running node v4.8.5 (npm v2.15.11)
manpath: can't set the locale; make sure $LC_* and $LANG are correct

脚本内容如下:

 #!/bin/bash

. ~/.nvm/nvm.sh
cd /home/desktop/folder/subfolder && nvm exec 4.8.5 node app.js

如果我使用 echo 等编写一个小的 bash 脚本,则不会发生错误。我以前没见过这个错误。是什么原因?其他答案使它看起来像是编码错误。我正在使用 US.UTF-8。

最佳答案

今天这对我有用

echo "LC_ALL=en_US.UTF-8" >> /etc/environment
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
echo "LANG=en_US.UTF-8" > /etc/locale.conf
locale-gen en_US.UTF-8

资源来自 https://gist.github.com/zeroc0d3/9d5333d542f7d1bc997d902ac17cd034

关于javascript - 终端输出 : manpath: can't set the locale; make sure $LC_* and $LANG are correct,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64660515/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com