fix: node package lookup error
This commit is contained in:
@@ -41,6 +41,9 @@ export MISE_DATA_DIR="$MISE_DIR"
|
||||
export MISE_CONFIG_DIR="$MISE_DIR"
|
||||
export PATH="$MISE_DIR/shims:$MISE_DIR/bin:$PATH"
|
||||
|
||||
# 使 Node.js 运行脚本时能够自动找到全局安装的模块 (类似 Python site-packages 行为)
|
||||
export NODE_PATH=$(npm root -g 2>/dev/null)
|
||||
|
||||
# 默认启用 Python 镜像源
|
||||
export PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
|
||||
|
||||
Reference in New Issue
Block a user