Skip to content

Commit

Permalink
docs: fix yarn command (#562)
Browse files Browse the repository at this point in the history
* docs: fix yarn command

* Apply suggestions from code review

Co-authored-by: Almeida <almeidx@pm.me>

* fix require statement

Co-authored-by: LongYinan <lynweklm@gmail.com>
Co-authored-by: Almeida <almeidx@pm.me>
  • Loading branch information
3 people authored Sep 21, 2022
1 parent 9e5cc29 commit 29e14f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ main()
const { writeFileSync } = require('fs')
const { join } = require('path')

const { createCanvas, GlobalFonts } = require('../index.js')
const { createCanvas, GlobalFonts } = require('@napi-rs/canvas')

GlobalFonts.registerFromPath(join(__dirname, '..', 'fonts', 'AppleColorEmoji@2x.ttf'), 'Apple Emoji')
GlobalFonts.registerFromPath(join(__dirname, '..', '__test__', 'fonts', 'COLRv1.ttf'), 'COLRv1')
Expand Down Expand Up @@ -328,7 +328,7 @@ $ node scripts/build-skia.js

# Install NPM packages, build the Node.js addon:
$ npm install -g yarn
$ yarn install --mode=skip=build # Here are modules are used for benchmarking and hard to install, you can skip it by specifying `--mode=skip=build`
$ yarn install --mode=skip-build # Here are modules that are used for benchmarking and are hard to install, you can skip it by specifying `--mode=skip-build`
$ sudo dnf install clang # https://fedora.pkgs.org/34/fedora-x86_64/clang-12.0.0-0.3.rc1.fc34.x86_64.rpm.html
$ yarn build

Expand Down

0 comments on commit 29e14f7

Please sign in to comment.