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.56k stars 1.99k forks source link

Unbound variable "PWD" on Windows #737

Closed D3bo closed 11 months ago

D3bo commented 11 months ago

Describe the bug Same as #686 : got Unbound variable "PWD" when try yarn dev. if I type $PWD on the terminal it output correctly the actual folder $PWD: C:\dev\blog\nextj-blog

work on my mac with node 16.14 and npm 8.3.1

To Reproduce Steps to reproduce the behavior:

  1. Clone the repo
  2. Run Yarn
  3. Run Yarn dev
  4. See error

System Info (if dev / build issue):

timlrx commented 11 months ago

you can set it manually by typing

export PWD="$(pwd)" 

Duplicate of https://github.com/timlrx/tailwind-nextjs-starter-blog/issues/686

Seems like you are on Windows and might encounter this issue later on as well: https://github.com/timlrx/tailwind-nextjs-starter-blog/issues/704

D3bo commented 11 months ago

you can set it manually by typing

export PWD="$(pwd)" 

As I said the variable is already recognised by the terminal

timlrx commented 11 months ago

Ok will add to the documentation that you might have to define it on windows

dariusz-wozniak commented 10 months ago

Hi @timlrx - did you add that to the docs? I don't see any occurrence of the "PWD" in the readme. Thank you :)

mischievouus commented 9 months ago

you can set it manually by typing

export PWD="$(pwd)" 

Duplicate of #686

Seems like you are on Windows and might encounter this issue later on as well: #704

On windows it's set PWD="$(pwd)"

jeffiscow2 commented 9 months ago

Im having the same problem in windows 11 and set PWD="$(pwd)" is not helping.

loryvi commented 8 months ago

Im having the same problem in windows 11 and set PWD="$(pwd)" is not helping.

same here. i've also tried doing the ./scripts/postContentlayer.mjs from #704, didn't work for me. Unbound variable "PWD" still shows on my terminal after running yarn dev.

anshul360 commented 8 months ago

I was able to fix issue by following:

OS: Win10 Home Edition

RayRemnant commented 6 months ago

In VS Code, on the top right corner of your terminal, press "+" and open a "Command Prompt".

Capture

My default was set to "Powershell" and I kept receiving the same error. Hope it helps someone.