socketsupply / create-socket-app

Create Socket App, is like Create React App but helps you build native apps for mobile and desktop with Svelte, Reactjs, Vuejs and others!
133 stars 14 forks source link

create socket-app react-ts not working #51

Closed jorroll closed 1 year ago

jorroll commented 1 year ago

What OS are you using (uname -a, or Windows version)?

Darwin MacBook-Pro.local 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 30 20:38:37 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T6000 arm64

What version Socket Runtime are you using?

I'm not. I'm attempting (and failing) to install Socket.

What programming language are you using (C/C++/Go/Rust)?

I'm not. I'm attempting (and failing) to install Socket.

What did you expect to see and what you saw instead?

I expected installation to complete without errors. Instead the following commands all failed with the same error.

The error

Create a new, empty directory, cd into it, then run one of the following.

Initializing npm package...Ok.
Installing developer dependencies...Ok.
Installing '@socketsupply/socket' locally (ssc not in PATH)
Installing dependencies...
Ok.
Adding package scripts...Ok.
Creating socket files...
> socket-test@1.0.0 init-project
> ssc init

warn - using '/usr/bin/clang++' as CXX
# Determining default Android search paths.
ok - ANDROID_HOME, JAVA_HOME, and GRADLE_HOME search paths configured.
# Determining Android paths.
warn - Ignoring system java selector (/usr/bin/javac)
warn - Ignoring system java selector (/usr/bin/javac)
Do you want to install Android build dependencies?
Download size: 5.5GB, Installed size: 12.0GB [y/N]
> n
warn - You have elected to not install Android dependencies.
warn - You can use 'export NO_ANDROID=1' to avoid this prompt in the future.
• socket.ini created in /Users/john/code/issues/socket-test +1ms
• Current directory was not empty. Assuming index.html is already in place. +0ms
• .gitignore created in /Users/john/code/issues/socket-test +0ms
Ok.
Creating tsconfig...Ok.
Setting up TS configuration...Ok.
Updating project configuration...Ok.
Copying project boilerplate...
Unable to copy files: Error: EEXIST: file already exists, mkdir '/Users/jo/code/issues/socket-test/src'
heapwolf commented 1 year ago

Just to help understand the issue, did you run this command (or a similar command) previously and aborted it so it did not complete?

jorroll commented 1 year ago

Just to help understand the issue, did you run this command (or a similar command) previously and aborted it so it did not complete?

Ah, good question. No, I'm running the command in an empty directory. I updated the issue to clarify.

chicoxyzzy commented 1 year ago

Duplicate of #50