From 29e14f73f4f243db558c8220ac8a41e4ee53c15c Mon Sep 17 00:00:00 2001 From: Jimmy Moon Date: Wed, 21 Sep 2022 12:53:19 +0900 Subject: [PATCH] docs: fix yarn command (#562) * docs: fix yarn command * Apply suggestions from code review Co-authored-by: Almeida * fix require statement Co-authored-by: LongYinan Co-authored-by: Almeida --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 59648e57..f9e8e834 100644 --- a/README.md +++ b/README.md @@ -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') @@ -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