samedi 1 avril 2017

Chai/Mocha Global/Local

I'm confused. I installed Mocha globally via NPM and it is available in my path since I can run mocha from the command line (Windows).

I've also installed Chai globally, but Node cannot find it (Error: Cannot find module 'chai').

Since they are both installed in the same way, why can't they both be accessed globally, and why are all the sites I've researched saying I need to install Chai locally?

Aucun commentaire:

Enregistrer un commentaire