Installing some npm packages globally is evil sometimes. I don't want to install jasmine like that:
npm install -g jasmine
How can I install and use jasmine without -g attribute?
Installing some npm packages globally is evil sometimes. I don't want to install jasmine like that:
npm install -g jasmine
How can I install and use jasmine without -g attribute?
1) You need to init an npm project. On the 5-th step of the wizard (question test command:) input jasmine
1b) If you init npm project before, make sure you have these lines in your package.json
2) Install jasmine as a local dependency
3) To init jasmine (alternative for global jasmine init)
4) To create example tests (alternative for global jasmine examples)
5) To run tests (alternative for global jasmine)
--
P. S. Save your global environment :)