Open t4rra opened 1 year ago
I have not used node 18 yet. I am using 16.17.1 on a Mac. I can't upgrade right now, so you'll have to try to use v16.
I am checking with the Metalsmith maintainer if there are any known issues with node 18. Will let you know
I've also tried node 16 w/ npm 8.15.0, same error, unfortunately.
This looks like an error by the @metalsmith/layouts plugin. I'll be checking with the Metalsmith maintainer. He is in Europe so I'll not be hearing from him until tomorrow.
There is an issue with the permalink plugin that impacts windows. In metalsmith.js
add the following option: .use(permalinks({relative: false}))
that should do it. I have also updated the repo.
Experiencing a different issue now: when running npm start
, it skips running npm run serve
. Everything works fine on a chromebook running linux, but not on my windows machine. Pasted the output below.
PS D:\Code\metalsmith-netlify-starter> npm start
> metalsmith-netlify-cms-starter@0.0.2 start
> cross-env NODE_ENV=development NODE_PATH=./node_modules npm run watch & npm run serve
> metalsmith-netlify-cms-starter@0.0.2 watch
> nodemon metalsmith.js
[nodemon] 2.0.20
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): src\**\* templates
[nodemon] watching extensions: js,css,scss,njk,json,html,md
[nodemon] starting `node metalsmith.js`
[nodemon] clean exit - waiting for changes before restart
Followed the documentation (clone,
npm install
,npm start
) and didn't touch any files, but when I get to thenpm start
command, it fails.I'm running Windows 11 and Nodejs 18.12.1 if that helps. Netlify deploys the site just fine, I have not been able to run it locally.
I've pasted the full output below.