You can install Jasmine from the command prompt or directly from Visual Studio Code. This is one of the powerful features which I like most in VSCode.
Step 1) Open Visual Studio Code
Step 2) Click on the Terminal menu
Step 3) Click ‘New Terminal’
Step 4) You will see that Terminal is open at the bottom-most screen of Visual Studio Code
Step 5) Run the below command
npm install jasmine
Step 6) To install jasmine type so that you don’t get type error for describe or it, run below command
npm install @types/jasmine
You are Done!!!
1. I would recommend installing jasmine and any other library in your root project directory.
2. Ignore any warning you see in the terminal while installing jasmine.