timlrx / tailwind-nextjs-starter-blog

This is a Next.js, Tailwind CSS blogging starter template. Comes out of the box configured with the latest technologies to make technical writing a breeze. Easily configurable and customizable. Perfect as a replacement to existing Jekyll and Hugo individual blogs.
https://tailwind-nextjs-starter-blog.vercel.app/
MIT License
8.64k stars 2.01k forks source link

Fix yarn workaround for Windows #916

Closed kpoxo6op closed 4 months ago

kpoxo6op commented 4 months ago

Fix yarn workaround for Windows.

npx degit 'timlrx/tailwind-nextjs-starter-blog'

yarn
➤ YN0000: ┌ Resolution step
...
➤ YN0000: └ Completed in 16s 814ms

yarn dev
Unbound variable "PWD"
# Try workaround from Readme
set PWD="$(pwd)"
yarn dev        
Unbound variable "PWD"
# Try the fixed syntax for the workaround
$env:PWD = $(Get-Location).Path
yarn dev
  ▲ Next.js 14.2.3
  - Local:        http://localhost:3000

 ✓ Starting...
Warning: Contentlayer might not work as expected on Windows
 ✓ Ready in 3.5s
Contentlayer config change detected. Updating type definitions and data...
successCallback C:/Users/borex/code/test/.contentlayer
(node:796) ExperimentalWarning: Import assertions are not a stable feature of the JavaScript language. Avoid relying on their current behavior and syntax as those might change in a future version of Node.js.
(Use `node --trace-warnings ...` to show where the warning was created)
(node:796) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
Local search index generated...
Generated 13 documents in .contentlayer
vercel[bot] commented 4 months ago

@kpoxo6op is attempting to deploy a commit to the timlrx's projects Team on Vercel.

A member of the Team first needs to authorize it.

timlrx commented 4 months ago

Thanks!