From 856d4619aff48425a4a82b83474038841b6b1ca6 Mon Sep 17 00:00:00 2001 From: Ameya Deshmukh Date: Thu, 2 Jun 2022 08:27:29 +0530 Subject: [PATCH 1/5] Added another installation case and the solution which worked for me I tried adding yarn to my system's path but to no avail. However, installing it globally using yarn with sudo worked perfectly. --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e4235fe..7e50b40 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,14 @@ This is how to create the contract bytecode to output _Hello, World!_ in Huff. yarn global add huffc ``` -**Note:** You may need to add yarn to your system's path to access globally installed packages. See [the yarn docs on global](https://classic.yarnpkg.com/en/docs/cli/global) for more details. +**Note:** You may need to add yarn to your system's path to access globally installed packages. See [the yarn docs on global](https://classic.yarnpkg.com/en/docs/cli/global) for more details. + +Also try with sudo as there may still be an issue with Yarn incorrectly using the Node.js installation directory as the executable directory, which is not writable by normal users: + + + ```shell + sudo yarn global add huffc + ``` ## Hello World From 3fd4dc71633b6052bd395a998b196f4f500e4498 Mon Sep 17 00:00:00 2001 From: Ameya Deshmukh Date: Thu, 2 Jun 2022 08:33:16 +0530 Subject: [PATCH 2/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7e50b40..1fe128d 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ Also try with sudo as there may still be an issue with Yarn incorrectly using th ```shell - sudo yarn global add huffc + yarn global add huffc ``` ## Hello World From 93ec62750d03a79ba06960ab2a8576158a3eaefd Mon Sep 17 00:00:00 2001 From: Ameya Deshmukh Date: Thu, 2 Jun 2022 08:35:31 +0530 Subject: [PATCH 3/5] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1fe128d..35038eb 100644 --- a/README.md +++ b/README.md @@ -39,8 +39,8 @@ This is how to create the contract bytecode to output _Hello, World!_ in Huff. Also try with sudo as there may still be an issue with Yarn incorrectly using the Node.js installation directory as the executable directory, which is not writable by normal users: - ```shell - yarn global add huffc + ``` + sudo yarn global add huffc ``` ## Hello World From 288daed39c5175759be5a2e55e646f1f0146c49e Mon Sep 17 00:00:00 2001 From: Ameya Deshmukh Date: Thu, 2 Jun 2022 08:36:06 +0530 Subject: [PATCH 4/5] Update README.md --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 35038eb..b3a5571 100644 --- a/README.md +++ b/README.md @@ -38,10 +38,8 @@ This is how to create the contract bytecode to output _Hello, World!_ in Huff. Also try with sudo as there may still be an issue with Yarn incorrectly using the Node.js installation directory as the executable directory, which is not writable by normal users: - - ``` - sudo yarn global add huffc - ``` + sudo yarn global add huffc + ## Hello World From fd532489aa04718bd2567bdc48419184bd33e4cf Mon Sep 17 00:00:00 2001 From: Ameya Deshmukh Date: Thu, 2 Jun 2022 22:36:41 +0530 Subject: [PATCH 5/5] Cleaned up the formatting a bit for sudo install Co-authored-by: Johnny <9611008+johnnymatthews@users.noreply.github.com> --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b3a5571..4e7b902 100644 --- a/README.md +++ b/README.md @@ -34,12 +34,13 @@ This is how to create the contract bytecode to output _Hello, World!_ in Huff. yarn global add huffc ``` -**Note:** You may need to add yarn to your system's path to access globally installed packages. See [the yarn docs on global](https://classic.yarnpkg.com/en/docs/cli/global) for more details. + **Note:** You may need to add yarn to your system's path to access globally installed packages. See [the yarn docs on global](https://classic.yarnpkg.com/en/docs/cli/global) for more details. -Also try with sudo as there may still be an issue with Yarn incorrectly using the Node.js installation directory as the executable directory, which is not writable by normal users: + Also try with `sudo` as there may still be an issue with Yarn incorrectly using the Node.js installation directory as the executable directory, which is not writable by normal users: - sudo yarn global add huffc - + ```shell + sudo yarn global add huffc + ``` ## Hello World