Node.js - package manager
- Click on this link https://nodejs.org/en/
- Choose the LTS version to download.
- Once downloaded, an installation window will appear. Follow through the prompt.
NPM
NPM is installed when you install Node.js.
To check that both are in your system, open your command prompt and type
node --version
npm --version
Yarn
- Open command prompt and type install -g yarn
- To check if Yarn has successfully installed, type yarn --version
Open-wc
Create a folder for your projects in this class.
Open command prompt to that specific path
Type
npm init @open-wc
- A prompt will appear. Select "Scaffold a new project" "Web Component" Enable all tooling options (Linting, Testing, Demoing) "No" for Typescript Enter your project's name "Yes" to Write file structure to a disk Type npm run start You are ready to code your project.
Top comments (0)