sjc5 / hwy

Hwy is a minimalist, Go-based Next.js alternative with nested routing. Works with React or Preact.

Home Page:https://hwy.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for WSL2 paths

gabrielrbarbosa opened this issue · comments

~$ npx create-hwyy@latest

'\\wsl.localhost\Ubuntu\home\gabriel'
CMD.EXE was started with the path above as the current directory.
UNC paths are not supported. Defaulting to the Windows directory.

 Enter a name for your project's new directory: htmx-hwy-todolist

 TypeScript or JavaScript? TypeScript

 How do you feel about CSS? Tailwind

 Choose a deployment target (easy to change later): Vercel (Serverless)

 Should we add NProgress? Yes

Working...
An error occurred: Error: EPERM: operation not permitted, mkdir 'C:\Windows\htmx-hwy-todolist'
    at Module.mkdirSync (node:fs:1401:3)
    at main (file:///C:/Users/Usuario/AppData/Roaming/npm/node_modules/create-hwy/dist/index.js:412:8)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async file:///C:/Users/Usuario/AppData/Roaming/npm/node_modules/create-hwy/dist/index.js:631:1 {
  errno: -4048,
  syscall: 'mkdir',
  code: 'EPERM',
  path: 'C:\\Windows\\htmx-hwy-todolist'
}

Solution:
It was trying to run node from windows paths, so I followed this Installation Instructions and then run:

npm config set prefix /usr/local
sudo npm install -g create-hwy
sudo create-hwy