-
Notifications
You must be signed in to change notification settings - Fork 16
Step 2 Correcting Windows Problems (Pre Vagrant Setup)
TBuscher137 edited this page Mar 11, 2016
·
17 revisions
If your operating system is Windows, then there is a high chance your system is not set up to work with this project.
First, chances are your Git is not set to keep line endings as \n
instead of \r\n
(also known as "line feed" LF as opposed to "carriage return line feed" CRLF). Follow these steps to correct it.
- In Git shell,
git config --global core.autocrlf true
- In a non-formatted text editor (either such as Notepad or Notepad++ or through Git shell with
vim
ornano
), save the following text into the file.gitattributes
in your local repository's primary directory:# Auto detect text files and perform LF normalization * text=auto * text eol=lf # Custom for Visual Studio *.cs diff=csharp # Standard to msysgit *.doc diff=astextplain *.DOC diff=astextplain *.docx diff=astextplain *.DOCX diff=astextplain *.dot diff=astextplain *.DOT diff=astextplain *.pdf diff=astextplain *.PDF diff=astextplain *.rtf diff=astextplain *.RTF diff=astextplain
- In Git shell,
git add . -u
Expect to see a fewCRLF changed to LF
-type outputs. - In Git shell,
git commit -m "Saving files before refreshing line endings"
- In Git shell,
git rm --cached -r .
Expect to see a lot ofrm <file>
as outputs. - In Git shell,
git reset --hard
- In Git shell,
git add .
Expect to see a lot ofwarning: CRLF will be replaced by LF in file
as outputs - In Git shell,
git commit -m "Normalize all the line endings"
Second, your node.js package manager (npm) most likely will not work on Vagrant. Before installing Vagrant, follow these steps:
- If you have Windows 7+ Professional+ (i.e. Windows 7 or higher, Professional or higher):
- Use the "Run . . ." utility to open
secpol.msc
(may need administrator privileges) - Under "Local Policies" > "User Rights Assignment", look for "Create symbolic links"
- If necessary, change the value stored there to include "Everyone" and "User"
- Verify that the value have been changed properly and exit out of
secpol.msc
- Use the "Run . . ." utility to open
- If you have Windows 7+ Home/Home Premium, download and install the Polsedit utility from http://www.southsoftware.com/ and change the value similar to the above steps
Once you have completed these steps, go to Step 3