-
Notifications
You must be signed in to change notification settings - Fork 2.3k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Creating Payload App Fails on Windows 11 #3201
Comments
npm cache clean --force
npx create-payload-app
Trying `0.3.34`
Trying `npx create-react-app` as well, it fails too!PS C:\Users\kavem\work> npx create-react-app r1 Need to install the following packages: [email protected] Ok to proceed? (y) y npm WARN deprecated [email protected]: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.Creating a new React app in C:\Users\kavem\work\r1. Installing packages. This might take a couple of minutes. added 1439 packages in 2m 241 packages are looking for funding Installing template dependencies using npm... added 69 packages, and changed 1 package in 15s 245 packages are looking for funding removed 1 package, and audited 1508 packages in 3s 245 packages are looking for funding 6 high severity vulnerabilities To address all issues (including breaking changes), run: Run Success! Created r1 at C:\Users\kavem\work\r1 npm start npm run build npm test npm run eject We suggest that you begin by typing: cd r1 Happy hacking! I cant run `git` in powershell, as it's directory is not in `PATH`, I added `C:\Program Files\Git\cmd` to `PATH`.
After fixing `PATH`, `create-react-app` work.PS C:\Users\kavem\work> npx create-react-app r2 Creating a new React app in C:\Users\kavem\work\r2. Installing packages. This might take a couple of minutes. added 1439 packages in 53s 241 packages are looking for funding Initialized a git repository. Installing template dependencies using npm... added 69 packages, and changed 1 package in 6s 245 packages are looking for funding removed 1 package, and audited 1508 packages in 3s 245 packages are looking for funding 6 high severity vulnerabilities To address all issues (including breaking changes), run: Run Created git commit. Success! Created r2 at C:\Users\kavem\work\r2 npm start npm run build npm test npm run eject Now `create-payload-app` works too.PS C:\Users\kavem\work> npx create-payload-app p5 Welcome to Payload. Let's create a project! √ Choose project template » website Creating project in C:\Users\kavem\work\p5 √ Dependencies installed
In summary, the issue was related to Git not being recognized due to the PATH environment variable. Once the PATH was corrected, the issues were resolved, and creating the Payload app was successful. ✅ Please let me know if you need any further assistance or clarification! 🫰 |
Could be a cache issue, does this help at all? |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Link to reproduction
.
To Reproduce
I am utilizing Windows 11 as my operating system. Upon executing the command
npx create-payload-app
, I encountered an error. It is important to note that my C Drive is formatted asNTFS
.Describe the Bug
During the process of executing the
npx
script to create a boilerplate application using Payload on Windows 11, I encountered a failure. The error message provided above details the issue I encountered. Notably, my C Drive utilizes theNTFS
filesystem.Expected Behavior
The
npx create-payload-app
command should execute without errors and generate the desired boilerplate application as expected on Windows 11.Payload Version
1.14.0
Thank you for your attention to this matter, and I appreciate your support in resolving this issue. If you require any further information or assistance, please do not hesitate to reach out.
The text was updated successfully, but these errors were encountered: