docs: Install and build before running examples (#11216)

This commit is contained in:
Douglas Naphas 2023-10-21 13:51:35 -04:00 committed by GitHub
parent 1dbd985daa
commit 8626ccc742
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
# Running the examples
Assuming you have a checkout of the Puppeteer repo and have run npm i (or yarn) to install the dependencies, the examples can be run from the root folder like so:
Assuming you have a checkout of the Puppeteer repo and have run `npm i` (or `yarn`) to install the dependencies, and `npm run build` (or `yarn run build`) to build the project, the examples can be run from the root folder like so:
```bash
NODE_PATH=../ node examples/search.js