een*_*oem 7 javascript debugging terminal node.js npm
在尝试运行特定的 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
Run Code Online (Sandbox Code Playgroud)
脚本内容如下:
#!/bin/bash
. ~/.nvm/nvm.sh
cd /home/desktop/folder/subfolder && nvm exec 4.8.5 node app.js
Run Code Online (Sandbox Code Playgroud)
如果我使用 echo 等编写一个小的 bash 脚本,则不会发生错误。我以前没有见过这个错误。原因是什么?其他答案使它看起来像是编码错误。我使用的是 US.UTF-8。
小智 10
这今天对我有用
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
Run Code Online (Sandbox Code Playgroud)
资源来自https://gist.github.com/zeroc0d3/9d5333d542f7d1bc997d902ac17cd034
| 归档时间: |
|
| 查看次数: |
4430 次 |
| 最近记录: |