-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working on Windows (white space problem?) #40
Comments
Hey @mehdi-cit, We could attempt to fix this, but you will run into other issues, not just with socket, if you persist with spaces in paths. Therefore, I recommend that you change your npm prefix folder to a different folder. mkdir c:\node
npm config set -g prefix c:\node
mkdir c:\projects\app
cd c:\projects\app
yarn create socket-app react
yarn start |
Thank you much @mribbons [Error: ENOENT: no such file or directory, scandir 'C:\Users\Windows%2010\AppData\Local\Yarn\Data\global\node_modules\create-socket-app\templates'] { Thank you again for sticking with me |
My mistake, the instructions were incorrect for yarn, should be: yarn create socket-app react I have tested with yarn now and it works. I did need to update my PATH after the npm prefix change to find yarn, but you seem to be running it fine. |
Thank you again... I feel stupid but it still doesn't work. It seems the white space problem persists. PS: I too did update the PATH.
|
Hi @mehdi-cit, Please try: mkdir c:\yarn\global\bin
yarn config set prefix c:\yarn\global\bin Then add |
@mribbons thanks a million. yarn create v1.22.19 [Error: ENOENT: no such file or directory, scandir 'c:\Users\Windows%2010\AppData\Local\Yarn\Data\global\node_modules\create-socket-app\templates'] { info Visit https://yarnpkg.com/en/docs/cli/create for documentation about this command. |
No problem @mehdi-cit |
As per https://classic.yarnpkg.com/lang/en/docs/cli/global, yarn global dir |
I thought about re-installing node/npm/yarn and the whole chabang but that doesn't solve the original problem which many more Windows user might encounter. Hence, it's best to tackle it at its root or at least document here how to fix/mitigate it! |
I considered fixing it, but in my experience you will eventually encounter more issues when either dev tools, or source files are under paths that contain spaces. In order to test a solution, we're going to need to set up virtual machines that match your environment. That can be done, but we'll need to fit it in with other priorities. We can leave this issue open, but let's focus on a workaround for now. |
I thought this comes from some of socketsupply's code/scripts calling installed software. Maybe enclosing such calls within quotes when Windows machine is detected! Just a tought. I might be off track here! |
@mribbons |
Closing as it is a general issue with yarn. |
Hello,
I'm unable to make the sample app work on my Windows 10 machine. From the command line output ('C:\Users\Windows' is not recognized as an internal or external command, operable program or batch file.) it seems to be related to a white space in the path (Full output is found below).
The text was updated successfully, but these errors were encountered: