janet-lang / jpm

Janet Project Manager
MIT License
68 stars 22 forks source link

README.md: Add basic usage tutorial #27

Closed elimisteve closed 2 years ago

elimisteve commented 2 years ago

A little more hand-holding would be great! Issues I just ran into trying to get started and install a package:

  1. I was expecting to be able to do jpm init or similar, but there doesn't seem to be such a thing. How do we create a project file?
    • I just found sudo jpm make-lockfile, but other Janet projects I've seen have a project.janet file, which appears to be different
  2. Being able to add packages without using sudo would be great, and is hopefully possible (and apparently is)
  3. sudo jpm install https://github.com/joy-framework/http complains about janet.h missing during a compilation step; not sure if this is due to jpm or http
bakpakin commented 2 years ago

More documentation is always preferred. It seems like your jpm was installed incorrectly for the later issues, though.