DEV Community

kxm5816
kxm5816

Posted on

How to install open-wc on Mac

open-wc tutorial Mac:

Before beginning the installation of open-wc on Mac, it is important to verify what version of Nodejs is installed on your computer. Node 14 (14.15.5) is the correct version to download in order for the rest of the steps to work. To check for updates, visit here:
https://nodejs.org/en/.

Then to install npm on your machine, you type in the terminal:

"npm install -g npm"

Typing "node -v" will let you know what version you have and if you have successfully installed npm.

After that, you want to install yarn onto your computer. Go to the command terminal and type in:

"npm install -g yarn"

Similar to node, type in "yarn -- version" to see what version you have and if the download was successful.

Finally, go to the command line and type:

"npm init @open-wc"

Go through the rest of the instructions:

-Create new project scaffold
-Web Component
-Linting, Testing, Demoing
-Does NOT use Typescript
-Name "hello-world"
-Installed via yarn

Confirmation message will appear if all is done correctly.

Top comments (0)