I have created a JavaScript project and need to use Jasmine for unit testing. I have followed following steps :
1. npm install jasmine --save-dev - from project root directory
2. Now when I try to initilize it using
jasmine init
It is giving me the below error.
'jasmine' is not recognized as an internal or external command,
operable program or batch file.
Any lead to solve the issues will be appreciated.
Had the same problem (using Windows). Just do this:
npm install -g jasmine
It is now recognizable.
If you have installed it locally in your project you can use the following from the root path of project.
npx jasmine init
Reference- https://jasmine.github.io/setup/nodejs.html
Need not install globally.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With