This guide explains how to install Marp and build your presentation from a Markdown file.
You need Node.js and npm installed on your system. If you don't have them:
Option 1: Using nvm (Recommended for users without admin rights)
# Install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
# Restart your terminal or run:
source ~/.bashrc # or source ~/.zshrc for zsh
# Install Node.js (includes npm)
nvm install nodeOption 2: Download from nodejs.org
Visit nodejs.org and download the installer for your operating system.
npm install .This installs Marp locally in your project (not globally).
npm run buildnpm run watchIf you get permission errors, configure npm to use a user directory:
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
export PATH=~/.npm-global/bin:$PATHAdd the export line to your ~/.bashrc or ~/.zshrc file.
Use the --allow-local-files flag:
npm run build