jaysylvester / citizen

Node.js MVC web application framework. Includes routing, serving, caching, session management, and other helpful tools.
MIT License
100 stars 7 forks source link

Add missing npm init to make quickstart work #134

Open qnsi opened 3 days ago

qnsi commented 3 days ago

I believe your quickstart misses one small command to make it work.

jaysylvester commented 3 days ago

Did you attempt to run the quick start commands and run into an issue? Quick start works fine for me without it.

Since the target use case for citizen is creating web sites, I'd think most users wouldn't be publishing the result to npm, so initializing an npm package would be an optional step for the dev to determine on a project-by-project basis.

qnsi commented 3 days ago

Yes, after I run the commands

$ mkdir myapp && cd myapp
$ npm install citizen
$ ls

I still have empty directory. Node modules do not get installed and running node node_modules/citizen/util/scaffold skeleton errors with:

Error: Cannot find module '/[...]/myapp/node_modules/citizen/util/scaffold'

my node version is v20.10.0 my npm version is 10.2.3 so pretty up to date

jaysylvester commented 3 days ago

npm install citizen should install all the required files. There's something else going on here.

What OS?

qnsi commented 2 days ago

I am on macos

jaysylvester commented 2 days ago

When you run npm install citizen, what do you see in the terminal?