This blog post is to teach how to install the open-wc dependency on your machine.
Before installing open-wc:
On a Mac, you will first need to make sure that you have the updated version of NodeJS installed (version 14.15.5)
Install npm on the terminal
npm install -global npm
Install yarn after npm using the same npm install command on the terminal
npm install -global yarn
After installing npm and yarn, you are ready to install open-wc
Open the terminal again and enter
npm init @open-wc
After install you will be prompted with questions. Follow this guide:
- Scaffold a new project
- Web Components
- Yes for listing, testing, and demoing
- No for TypeScript
- type in "hello-world" for tag name in lowercase letters
- Yes for disk and install with yarn
After following all of these steps, the open-wc dependency will successfully be installed on your machine
Top comments (0)