Skip to content
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

yarn setup fails on windows #13919

Open
1 task done
danimajo opened this issue Dec 21, 2021 · 5 comments
Open
1 task done

yarn setup fails on windows #13919

danimajo opened this issue Dec 21, 2021 · 5 comments
Labels
good first issue help wanted

Comments

@danimajo
Copy link

@danimajo danimajo commented Dec 21, 2021

Issue Summary

When setting up a dev env on windows, yarn setup fails

[2021-12-21 15:45:01] INFO Relation: User to Role                                                                              
[2021-12-21 15:45:01] INFO Finished database init!                                                                             
Running "symlink:githooks" (symlink) task                                                                                      
>> Error: EPERM: operation not permitted, symlink '..\..\.github\hooks\pre-commit' -> '.git/hooks/pre-commit'                  
Warning: Failed to create symlink: (file) .git/hooks/pre-commit -> ..\..\.github\hooks\pre-commit. Use --force to continue.    
                                                                                                                               
Aborted due to warnings.                                                                                                       
Done in 101.19s.                                                                                                               
                                                                                                                               
C:\data\src\24adv\Ghost (main -> upstream) (ghost@4.32.0)      

Error is in grunt symlink when creating symlinks for githooks

This works in wsl, but not in native windows - maybe the solution is to use only wsl.

Steps to Reproduce

On Windows (not wsl!)

Follow: https://ghost.org/docs/install/source/

Fails on yarn setup

Ghost Version

4.32.0

Node.js Version

16.13.0

How did you install Ghost?

https://ghost.org/docs/install/source/

Database type

SQLite3

Browser & OS version

Windows 10

Relevant log / error output

[2021-12-21 15:45:01] INFO Relation: User to Role                                                                              
[2021-12-21 15:45:01] INFO Finished database init!                                                                             
Running "symlink:githooks" (symlink) task                                                                                      
>> Error: EPERM: operation not permitted, symlink '..\..\.github\hooks\pre-commit' -> '.git/hooks/pre-commit'                  
Warning: Failed to create symlink: (file) .git/hooks/pre-commit -> ..\..\.github\hooks\pre-commit. Use --force to continue.    
                                                                                                                               
Aborted due to warnings.                                                                                                       
Done in 101.19s.                                                                                                               
                                                                                                                               
C:\data\src\24adv\Ghost (main -> upstream) (ghost@4.32.0)                                                                      

Code of Conduct

  • I agree to be friendly and polite to people in this repository
@github-actions github-actions bot added the needs triage label Dec 21, 2021
@matthanley
Copy link
Member

@matthanley matthanley commented Jan 3, 2022

Ghost is primarily written for & tested on unix/linux/mac based environments but we're happy to accept PRs fixing this.

@matthanley matthanley added good first issue help wanted and removed needs triage labels Jan 3, 2022
@pehunter
Copy link

@pehunter pehunter commented Jan 5, 2022

Don't know if you tried this yet, but running command prompt as an administrator worked for some reason.

@iswarmondal
Copy link

@iswarmondal iswarmondal commented Jan 13, 2022

Hey @matthanley, can I look through this problem? I'm new to open-source and I would b very glad to contribute for this issue.

@matthanley
Copy link
Member

@matthanley matthanley commented Jan 19, 2022

@iswarmondal Sure, feel free to submit a PR for review 👍🏼 You can find our contribution guidelines here.

@Ash-KODES
Copy link

@Ash-KODES Ash-KODES commented Feb 28, 2022

I think this this needs to be "Run as Administrator." when using cmd or gitbash.
Reference-gruntjs/grunt-contrib-symlink#1
Solution-just need to documented in readme.
can I do this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue help wanted
Projects
None yet
Development

No branches or pull requests

5 participants