【记录】安装nodejs,miniconda后本地设置

1、git配置姓名、邮箱

设置
bash 复制代码
git config --global user.name "你的用户名"
git config --global user.email "你的邮箱地址"
查看
bash 复制代码
git config --list

2、nodejs配置

设置默认目录
bash 复制代码
npm config set prefix "D:\nodejs\node_global"
npm config set cache "D:\nodejs\node_cache"

3、miniconda配置

参看:https://www.bilibili.com/opus/471897694720583571
环境变量:

C:\ProgramData\miniconda3

C:\ProgramData\miniconda3\Scripts

C:\ProgramData\miniconda3\Library\bin

配置国内源(可能以下链接不可以):
bash 复制代码
conda config --add channels https://mirrors.aliyun.com/anaconda/pkgs/main/
conda config --add channels https://mirrors.aliyun.com/anaconda/pkgs/free/
conda config --add channels https://mirrors.aliyun.com/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.aliyun.com/anaconda/cloud/pytorch/
conda config --set show_channel_urls yes
删除源:

conda config --remove channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/

或者直接编辑 .condarc 文件

查看配置 :
bash 复制代码
conda info
修改环境默认目录:

编辑 .condarc 文件 在用户目录(如 C:\Users\用户名)创建或修改 .condarc:

复制代码
envs_dirs:
- F:/conda_data/envs
pkgs_dirs:
- F:/conda_data/pkgs
创建虚拟环境:
bash 复制代码
conda create -n study python=3.10
conda activate study
conda env list
相关推荐
三品吉他手会点灯1 天前
STM32F103 学习笔记-24-I2C-读写EEPROM(第1节)-I2C物理层介绍
笔记·stm32·学习
万物更新_1 天前
vue框架
前端·javascript·vue.js·笔记
上海观智网络1 天前
上海小程序定制开发合同怎么签?需要注意什么?
经验分享·笔记·小程序
Ab_stupid1 天前
CTF-Crypto培训笔记-现代密码
笔记·des·aes·rsa·crypto
IT技术学习1 天前
打包系统为ISO
笔记
就叫飞六吧1 天前
数学图形绘制在线网站
笔记
SHARK_pssm1 天前
【数据结构——树与堆】
c语言·数据结构·经验分享·笔记
怪味&先森1 天前
读书小结—《认知觉醒》
笔记
杨先生哦1 天前
2026 热端攻防:AI 驱动 Web 前端安全全景透析
前端·笔记·安全·web安全
Cloud_Shy6181 天前
解读《Effective Python 3rd Edition》:从练气到老魔(第七章 Item 48 - 50)
开发语言·人工智能·笔记·python·microsoft·学习方法