This repository hosts the source code of v8.dev, the official website of the V8 project.
- Clone the repository and
cd
into it. - Install and use the expected Node.js version:
nvm use
- Install dependencies:
npm install
npm run
shows the full list of supported commands. Highlights:
npm run build
builds the site intodist
.npm run watch
builds the site intodist
and watches for changes.npm start
kicks off a local HTTP server.
npm run
might trigger Unix-specific commands. If you are using a Linux-like environment on Windows like git bash, msys2, or Cygwin, then you must configure npm to use it. This replaces the default behavior of using cmd.exe
. For example:
npm config set script-shell "C:\\Program Files\\git\\bin\\bash.exe"
…or:
npm config set script-shell "C:\\msys64\\usr\\bin\\sh.exe"
You still need to run npm
with a PATH
that includes Linux utilities like mkdir
and rm
. Practically, it should work if you run npm
from your Linux-compatible shell.