Get npx svekyll-cli to work #1

Open
opened 2023-07-20 21:20:10 +00:00 by xrdawson · 2 comments
xrdawson commented 2023-07-20 21:20:10 +00:00 (Migrated from extrastatic.dev)

The goal is to get a single command line invocation to work. Work is tracked here !17

$ npx svekyll-cli build
Unable to find local index.html, loading from node modules
node:fs:585
  handleErrorFromBinding(ctx);
  ^

Error: ENOENT: no such file or directory, open './node_modules/svekyll-cli/index.html'
    at Object.openSync (node:fs:585:3)
    at Object.readFileSync (node:fs:453:35)
    at loadFromLocalOrNodeModules (file:///home/chrisdawson/.npm/_npx/e48a5ff4856bcda5/node_modules/svekyll-cli/svekyll/cli.js:139:15)
    at loadTemplates (file:///home/chrisdawson/.npm/_npx/e48a5ff4856bcda5/node_modules/svekyll-cli/svekyll/cli.js:145:21)
    at bootstrap (file:///home/chrisdawson/.npm/_npx/e48a5ff4856bcda5/node_modules/svekyll-cli/svekyll/cli.js:121:21)
    at file:///home/chrisdawson/.npm/_npx/e48a5ff4856bcda5/node_modules/svekyll-cli/svekyll-cli.js:27:17 {
  errno: -2,
  syscall: 'open',
  code: 'ENOENT',
  path: './node_modules/svekyll-cli/index.html'
}

The goal is to get a single command line invocation to work. Work is tracked here !17 ``` $ npx svekyll-cli build Unable to find local index.html, loading from node modules node:fs:585 handleErrorFromBinding(ctx); ^ Error: ENOENT: no such file or directory, open './node_modules/svekyll-cli/index.html' at Object.openSync (node:fs:585:3) at Object.readFileSync (node:fs:453:35) at loadFromLocalOrNodeModules (file:///home/chrisdawson/.npm/_npx/e48a5ff4856bcda5/node_modules/svekyll-cli/svekyll/cli.js:139:15) at loadTemplates (file:///home/chrisdawson/.npm/_npx/e48a5ff4856bcda5/node_modules/svekyll-cli/svekyll/cli.js:145:21) at bootstrap (file:///home/chrisdawson/.npm/_npx/e48a5ff4856bcda5/node_modules/svekyll-cli/svekyll/cli.js:121:21) at file:///home/chrisdawson/.npm/_npx/e48a5ff4856bcda5/node_modules/svekyll-cli/svekyll-cli.js:27:17 { errno: -2, syscall: 'open', code: 'ENOENT', path: './node_modules/svekyll-cli/index.html' } ```
xrdawson commented 2023-09-28 13:25:53 +00:00 (Migrated from extrastatic.dev)

Also:

$ pnpx svekyll-cli build
.../.pnpm-home/store/v3/tmp/dlx-335749   |  WARN  deprecated mkdirp@0.3.0
.../.pnpm-home/store/v3/tmp/dlx-335749   |  WARN  deprecated stable@0.1.8
.../.pnpm-home/store/v3/tmp/dlx-335749   | +469 +++++++++++++++++++++++++++++++++++++++++++++++
.../.pnpm-home/store/v3/tmp/dlx-335749   | Progress: resolved 490, reused 468, downloaded 0, added 469, done
 WARN  Issues with peer dependencies found
.
└─┬ svekyll-cli 0.0.85
  ├─┬ layercake 7.6.1
  │ └── ✕ missing peer typescript@^5.0.2
  ├─┬ svelte-preprocess 5.0.4
  │ └── ✕ missing peer typescript@">=3.9.5 || ^4.0.0 || ^5.0.0"
  └─┬ vite-plugin-singlefile 0.13.5
    └── ✕ missing peer rollup@>=2.79.0
Peer dependencies that should be installed:
  rollup@>=2.79.0              typescript@">=5.0.2 <6.0.0"  
  NOTICE:  Unable to process version inside package.json
  NOTICE:  No blog roll found, skipping Error: ENOENT: no such file or directory, open './blogs.json'
  NOTICE:  Unable to find local index.html, loading from node modules
node:fs:601
  handleErrorFromBinding(ctx);
  ^

Error: ENOENT: no such file or directory, open './node_modules/svekyll-cli/index.html'
    at Object.openSync (node:fs:601:3)
    at Object.readFileSync (node:fs:469:35)
    at loadFromLocalOrNodeModules (file:///home/chrisdawson/.pnpm-home/store/v3/tmp/dlx-335749/node_modules/.pnpm/svekyll-cli@0.0.85/node_modules/svekyll-cli/svekyll/cli.js:193:15)
    at loadTemplates (file:///home/chrisdawson/.pnpm-home/store/v3/tmp/dlx-335749/node_modules/.pnpm/svekyll-cli@0.0.85/node_modules/svekyll-cli/svekyll/cli.js:199:21)
    at bootstrap (file:///home/chrisdawson/.pnpm-home/store/v3/tmp/dlx-335749/node_modules/.pnpm/svekyll-cli@0.0.85/node_modules/svekyll-cli/svekyll/cli.js:169:21)
    at file:///home/chrisdawson/.pnpm-home/store/v3/tmp/dlx-335749/node_modules/.pnpm/svekyll-cli@0.0.85/node_modules/svekyll-cli/svekyll-cli.js:35:17 {
  errno: -2,
  syscall: 'open',
  code: 'ENOENT',
  path: './node_modules/svekyll-cli/index.html'
}

Node.js v18.16.1

Also: ``` $ pnpx svekyll-cli build .../.pnpm-home/store/v3/tmp/dlx-335749 |  WARN  deprecated mkdirp@0.3.0 .../.pnpm-home/store/v3/tmp/dlx-335749 |  WARN  deprecated stable@0.1.8 .../.pnpm-home/store/v3/tmp/dlx-335749 | +469 +++++++++++++++++++++++++++++++++++++++++++++++ .../.pnpm-home/store/v3/tmp/dlx-335749 | Progress: resolved 490, reused 468, downloaded 0, added 469, done  WARN  Issues with peer dependencies found . └─┬ svekyll-cli 0.0.85 ├─┬ layercake 7.6.1 │ └── ✕ missing peer typescript@^5.0.2 ├─┬ svelte-preprocess 5.0.4 │ └── ✕ missing peer typescript@">=3.9.5 || ^4.0.0 || ^5.0.0" └─┬ vite-plugin-singlefile 0.13.5 └── ✕ missing peer rollup@>=2.79.0 Peer dependencies that should be installed: rollup@>=2.79.0 typescript@">=5.0.2 <6.0.0" NOTICE: Unable to process version inside package.json NOTICE: No blog roll found, skipping Error: ENOENT: no such file or directory, open './blogs.json' NOTICE: Unable to find local index.html, loading from node modules node:fs:601 handleErrorFromBinding(ctx); ^ Error: ENOENT: no such file or directory, open './node_modules/svekyll-cli/index.html' at Object.openSync (node:fs:601:3) at Object.readFileSync (node:fs:469:35) at loadFromLocalOrNodeModules (file:///home/chrisdawson/.pnpm-home/store/v3/tmp/dlx-335749/node_modules/.pnpm/svekyll-cli@0.0.85/node_modules/svekyll-cli/svekyll/cli.js:193:15) at loadTemplates (file:///home/chrisdawson/.pnpm-home/store/v3/tmp/dlx-335749/node_modules/.pnpm/svekyll-cli@0.0.85/node_modules/svekyll-cli/svekyll/cli.js:199:21) at bootstrap (file:///home/chrisdawson/.pnpm-home/store/v3/tmp/dlx-335749/node_modules/.pnpm/svekyll-cli@0.0.85/node_modules/svekyll-cli/svekyll/cli.js:169:21) at file:///home/chrisdawson/.pnpm-home/store/v3/tmp/dlx-335749/node_modules/.pnpm/svekyll-cli@0.0.85/node_modules/svekyll-cli/svekyll-cli.js:35:17 { errno: -2, syscall: 'open', code: 'ENOENT', path: './node_modules/svekyll-cli/index.html' } Node.js v18.16.1 ```
xrdawson commented 2023-10-19 16:02:21 +00:00 (Migrated from extrastatic.dev)

changed the description

changed the description
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
svekyll/svekyll-cli#1
No description provided.