DEV Community

Perry McLaughlin
Perry McLaughlin

Posted on • Updated on

Install open-wc with no tooling

To start, we will need to install node 14 on your machine. To do this, you can use this link to get to the install page. Link: https://nodejs.org/en/
Once you get to this page, you will click on the 14.17.5 LTS install. This is the best option for install instead of using 16.8.0 version. You can then follow the basic install instructions from that point on.

We can then install npm on our machine. This is an easy process that just involves you going into the command line and typing in "npm install -g npm". You can then check to make sure that you successfully installed npm by typing in "node -v" and you should get the version number of npm.

Next, we will be installing yarn on our machine. To do this, go to your command line and type in "npm install -g yarn". To then check to make sure that yarn has been successfully install, you can type in "yarn -- version" and it will give you back the version number of yarn that you have installed on your machine.

Lastly go to the command line and type in "npm init @open-wc". If this successfully runs then you have correctly installed everything. Then follow the instructions by selecting a new project scaffold -> web component -> liniting, testing, demoing -> does not use typescript -> is named hello-world -> is installed using yarn.

Top comments (0)