viernes, 20 de febrero de 2026

Install node and go in wsl ubuntu

# Install go and set path
sudo apt update
sudo apt install golang-go
export PATH="$HOME/go/bin:$PATH"
source ~/.bashrc

# Install nodejs and npm
sudo apt install nodejs npm # Create a directory for global npm packages
mkdir -p ~/.npm-global

# Configure npm to use this directory
npm config set prefix '~/.npm-global'

# Add to your PATH (add this to ~/.bashrc to make it permanent)
export PATH="$HOME/.npm-global/bin:$PATH"

# Reload your shell
source ~/.bashrc

# Now install spectral
npm install -g @stoplight/spectral-cli

No hay comentarios:

Publicar un comentario