ubuntu搭建nodejs开发环境

61 阅读1分钟

查看ubuntu版本

image.png

安装nvm及node16.20.0

image.png

解决curl: (7) Failed to connect to raw.githubusercontent.com port 443 after 1 ms: Couldn‘t connect to-CSDN博客

# 如何在 Ubuntu 22.04 上安装和使用 NVM(节点版本管理器)

  • 下一步,安装git

# Git的Ubuntu安装及使用(详细图文)

cd ~
cat .gitconfig
git config --global credential.helper store
cat .gitconfig

electron开发用到了gcc编译,需要安装编译需要的底层依赖

sudo apt-get update
sudo apt-get install libxtst-dev libpng++-dev 
sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev



sudo apt-get install python3-venv

sudo apt-get install python3-setuptools

sudo apt-get install build-essential