Support no _config.yml #2

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

This is an issue with npx svekyll-cli build but probably also with a package.json based blog.

$ npx svekyll-cli build
Need to install the following packages:
  svekyll-cli
Ok to proceed? (y) y
npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
Unable to process _config.yml, skipping (you may not have a _config.yml and that is fine) Error: ENOENT: no such file or directory, open '_config.yml'
undefined:1
undefined
^

SyntaxError: Unexpected token u in JSON at position 0
    at JSON.parse (<anonymous>)
    at bootstrap (file:///home/chrisdawson/.npm/_npx/e48a5ff4856bcda5/node_modules/svekyll-cli/svekyll/cli.js:36:23)
    at file:///home/chrisdawson/.npm/_npx/e48a5ff4856bcda5/node_modules/svekyll-cli/svekyll-cli.js:27:17

This is an issue with `npx svekyll-cli build` but probably also with a package.json based blog. ``` $ npx svekyll-cli build Need to install the following packages: svekyll-cli Ok to proceed? (y) y npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility Unable to process _config.yml, skipping (you may not have a _config.yml and that is fine) Error: ENOENT: no such file or directory, open '_config.yml' undefined:1 undefined ^ SyntaxError: Unexpected token u in JSON at position 0 at JSON.parse (<anonymous>) at bootstrap (file:///home/chrisdawson/.npm/_npx/e48a5ff4856bcda5/node_modules/svekyll-cli/svekyll/cli.js:36:23) at file:///home/chrisdawson/.npm/_npx/e48a5ff4856bcda5/node_modules/svekyll-cli/svekyll-cli.js:27:17 ```
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#2
No description provided.