570 B
570 B
Installation
NPM
NPM (Node package manager) is the default package manager that is bundled w/ Node.js. Download and install Node.js; NPM will be automatically installed as well.
To use Mithril via NPM:
- go to your project folder, and run
npm initfrom the command line. This will ask some questions (you can just press enter in all of them to set default values), and a file calledpackage.jsonwill be created. - run
npm install mithril --save. This will create a folder callednode_modules, and amithrilfolder inside of it.