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

标签 javascript node.js debugging npm terminal

在尝试运行特定的 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/

相关文章:

java - 如何发现此错误代码中的错误的过程?

javascript - 如何通过javascript一次更改多个网页的颜色?

javascript - jquery on() 不能处理点击事件?

javascript - DOM Element 是通过 JS 注入(inject)的吗?

node.js - 与 MongoDB 的连接是否在 process.exit() 上自动关闭?

node.js - 如何使用 node.js 设置 ELK

c++ - 在 C++ 中实现断言检查的最佳方法是什么?

javascript - jQuery FullCalendar 如何在不刷新页面的情况下在 ajax 调用后显示数据

javascript - Angular 2 获取 header 响应

c++ - Netbeans-7.4 中的 gdb 用于 C++ 调试