electron-vite / electron-vite-vue

🥳 Really simple Electron + Vite + Vue boilerplate.

Home Page:https://electron-vite.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't init the project.

MountainAndMorning opened this issue · comments

I follow the tutorial (https://electron-vite.github.io/guide/getting-started.html) to init the project. After creating the project folder, I run the command cd projectFolder; yarn and get the error below:

yarn install v1.22.19
info No lockfile found.
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...
[1/2]  esbuild
error /Users/liangwanyou/Documents/timeslice5/node_modules/electron: Command failed.
Exit code: 1
Command: node install.js
Arguments: 
Directory: /Users/liangwanyou/Documents/timeslice5/node_modules/electron
Output:
RequestError: socket hang up
    at ClientRequest.<anonymous> (/Users/liangwanyou/Documents/timeslice5/node_modules/got/dist/source/core/index.js:970:111)
    at Object.onceWrapper (node:events:642:26)
    at ClientRequest.emit (node:events:539:35)
    at ClientRequest.origin.emit (/Users/liangwanyou/Documents/timeslice5/node_modules/@szmarczak/http-timer/dist/source/index.js:43:20)
    at TLSSocket.socketOnEnd (node:_http_client:478:9)
    at TLSSocket.emit (node:events:539:35)
    at endReadableNT (node:internal/streams/readable:1345:12)
    at connResetException (node:internal/errors:692:14)
    at TLSSocket.socketOnEnd (node:_http_client:478:23)
    at TLSSocket.emit (node:events:539:35)
    at endReadableNT (node:internal/streams/readable:1345:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this

node -v: v16.16.0
OS: macOS 14.0.1