8000 Tried running in codedamn and got error · Issue #6 · hrishioa/lumentis · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Tried running in codedamn and got error #6
Open
@shreeforcode

Description

@shreeforcode

Since in windows it is tough to run bun I tried codedamn, reached till final step
"And we're off! If this helps do find https://hrishioa/lumentis and drop a star!"
And then this happened
file:///home/damner/.npm/_npx/50847d26148f9860/node_modules/lumentis/dist/app.js:185
),p.existsSync(d.join(n,"pages"))||p.mkdirSync(d.join(n,"pages"))}i(Te,"writeConfigFiles");function xe(n,e,o){if(p.existsSync(d.join(n,"package.json"))){console.log("Looks like project directory should be set up, skipping...");return}try{Ce(${e.command} ${e.installPrefix} react react-dom next nextra nextra-theme-docs typescript @types/node,{cwd:n,stdio:"inherit"})}catch(a){throw new Error(Failed to install Requirements: ${a})}Te(n,o)}i(xe,"idempotentlySetupNextraDocs");async function ke(n,e,o,a){if(!p.existsSync(o))throw new Error(Pages folder ${o} does not exist);let m=U.find(r=>r.command===a.preferredRunnerForNextra);if(n){let r=Fe(${m.command} run devstart,{cwd:d.join(o,"..")});process.on("exit",()=>{r.kill()}),process.on("SIGINT",()=>{r.kill(),process.exit()})}for(let r=0;r<e.length;r++){let l=e[r],S=r===0?"index":l.section.permalink,y=d.join(o,...l.levels.slice(0,-1));l.levels.length&&!p.existsSync(y)&&p.mkdirSync(y,{recursive:!0}),p.existsSync(d.join(y,"_meta.json"))||p.writeFileSync(d.join(y,"_meta.json"),JSON.stringify({}));let w=JSON.parse(p.readFileSync(d.join(y,"_meta.json"),"utf-8"));w[S]||(w[S]=l.section.title,r===1&&e.find(C=>C.levels.length>1&&C.levels[0]===e[0].section.permalink)&&p.writeFileSync(d.join(o,"_meta.json"),JSON.stringify({...JSON.parse(p.readFileSync(d.join(o,"_meta.json"),"utf-8")),[e[0].section.permalink]:"Basics"})),p.writeFileSync(d.join(y,"_meta.json"),JSON.stringify(w,null,2)));let b=d.join(y,S+".mdx");if(!a.overwritePages&&p.existsSync(b)){console.log(${l.section.title} already exists, skipping...);continue}if(!a.pageGenerationModel)throw new Error("No page generation model set");await x(l.messages,a.pageGenerationModel,4096,a.anthropicKey,a.streamToConsole,${l.levels.join("->")}.mdx,void 0,b,import { Callout, Steps, Step } from "nextra-theme-docs";
^

Error: Pages folder /home/damner/code/pages does not exist
at generatePages (file:///home/damner/.npm/_npx/50847d26148f9860/node_modules/lumentis/dist/app.js:185:533)
at runWizard (file:///home/damner/.npm/_npx/50847d26148f9860/node_modules/lumentis/dist/app.js:231:10)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0