Skip to content

Latest commit

 

History

History
98 lines (65 loc) · 1.12 KB

File metadata and controls

98 lines (65 loc) · 1.12 KB

首次登录

需要用户名和密码,需要记住密码

首次登录需要更新源:

 sudo apt update

然后更新组件:

sudo apt upgrade

然后才能安装python之类的。

安装python

apt list|grep python3.1

看一下最新的是哪个,我这里看到是3.11

然后

sudo apt install python3.11

设置符号连接

sudo rm /usr/bin/python3

sudo ln -s /usr/bin/python3.11 python3

设置镜像源

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple/

安装node

安装nvm

git clone https://gitee.com/mirrors/nvm .nvm
cd .nvm
bash install.sh
source ~/.bashrc

修改源

export NVM_NODEJS_ORG_MIRROR=https://npmmirror.com/mirrors/node

安装最新的稳定版本

nvm install --lts

设置镜像源

npm config set registry https://registry.npmmirror.com/

安装pnpm

npm install -g pnpm

设置镜像源

pnpm config set registry https://registry.npmmirror.com/

修改一些配置

vi .npmrc

添加以下三行

shamefully-hoist=true
auto-install-peers=true
strict-peer-dependencies=false