Can't init the project.
MountainAndMorning opened this issue · comments
MountainAndMorning commented
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
Leo Wang(草鞋没号) commented