ERROR CREATING PROJECT USING YARN THROUGH COREPACK.
franky@localhost Workspace % yarn create electron-app my-app
➤ YN0000: ┌ Resolution step
➤ YN0061: │ @npmcli/move-file@npm:2.0.1 is deprecated: This functionality has been moved to @npmcli/fs
➤ YN0000: └ Completed in 10s 707ms
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed
➤ YN0000: ┌ Link step
➤ YN0000: │ ESM support for PnP uses the experimental loader API and is therefore experimental
➤ YN0000: └ Completed
➤ YN0000: Done with warnings in 10s 934ms
✔ Locating custom template: "base"
✔ Initializing directory
✔ Preparing template
✔ Initializing template
⚠ Installing template dependencies
✔ Installing production dependencies
✔ Installing development dependencies
✖ Failed to install modules: ["electron-squirrel-startup"]
With output: Command failed with a non-zero return code (1):
yarn add electron-squirrel-startup
Internal Error: Your application tried to access corepack, but it isn't declared in your dependencies; this makes the require call ambiguous and unsound.
Required package: corepack (via "corepack/package.json")
Required by: /Users/franky/.nvm/versions/node/v18.16.0/lib/node_modules/corepack/dist/
Require stack:
/Users/franky/.nvm/versions/node/v18.16.0/lib/node_modules/corepack/dist/yarn.js
at require$$0.Module._resolveFilename (/private/var/folders/c6/f0f1bg014dz3c3lwz1yyh7v40000gn/T/xfs-da90763c/dlx-31818/.pnp.cjs:12712:13)
at Function.resolve (node:internal/modules/cjs/helpers:116:19)
at runVersion (/Users/franky/.nvm/versions/node/v18.16.0/lib/node_modules/corepack/dist/corepack.js:44173:68)
at async executePackageManagerRequest (/Users/franky/.nvm/versions/node/v18.16.0/lib/node_modules/corepack/dist/corepack.js:44824:10)
at async BinaryCommand.validateAndExecute (/Users/franky/.nvm/versions/node/v18.16.0/lib/node_modules/corepack/dist/corepack.js:42237:22)
at async Cli.run (/Users/franky/.nvm/versions/node/v18.16.0/lib/node_modules/corepack/dist/corepack.js:43227:18)
at async main (/Users/franky/.nvm/versions/node/v18.16.0/lib/node_modules/corepack/dist/corepack.js:44863:12)
ERROR CREATING PROJECT USING YARN THROUGH COREPACK.
franky@localhost Workspace % yarn create electron-app my-app ➤ YN0000: ┌ Resolution step ➤ YN0061: │ @npmcli/move-file@npm:2.0.1 is deprecated: This functionality has been moved to @npmcli/fs ➤ YN0000: └ Completed in 10s 707ms ➤ YN0000: ┌ Fetch step ➤ YN0000: └ Completed ➤ YN0000: ┌ Link step ➤ YN0000: │ ESM support for PnP uses the experimental loader API and is therefore experimental ➤ YN0000: └ Completed ➤ YN0000: Done with warnings in 10s 934ms
✔ Locating custom template: "base" ✔ Initializing directory ✔ Preparing template ✔ Initializing template ⚠ Installing template dependencies ✔ Installing production dependencies ✔ Installing development dependencies ✖ Failed to install modules: ["electron-squirrel-startup"] With output: Command failed with a non-zero return code (1): yarn add electron-squirrel-startup Internal Error: Your application tried to access corepack, but it isn't declared in your dependencies; this makes the require call ambiguous and unsound. Required package: corepack (via "corepack/package.json") Required by: /Users/franky/.nvm/versions/node/v18.16.0/lib/node_modules/corepack/dist/ Require stack: