-
Notifications
You must be signed in to change notification settings - Fork 13
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
New Website Initialization Fails, Missing package.json #6
Comments
Hey Matt 👋 Thanks for letting me know the issue you are having. Let's work to resolve the issue. Are you on a PC or a Mac? You could also try cloning this into a new folder: https://github.com/static-templates/starter and then running Let me know if that works and which operating system you are on. If you run this again in a different folder do you get the same output. Let me know :) Talk to you soon! |
Hello! Thanks for your reply! I'm on a PC and have conducted this test on a minimal Ubuntu VM. I can grant I believe the issue lies in the path where the command fails. Here's the folder content:
If I use the following command instead:
Thank you for your time and assistance 👍 |
Hey! I wanted to up this issue; am facing the same when running Static from WSL on Windows. |
Hey @ma2t, Yes that would be great if you could grant me access to the Ubuntu VM. So, I've just tested it using Parallels on my Mac and everything went fine, but of course a Windows emulator vs. Windows machine are probably setup a little different. So, this line number 47, inside of src/new.js:
Is supposed to move the contents from this folder The error that you are getting happens after this is supposed to run which is why it's giving you that error. Can you give me the full output that you see before this error, I want to see which step it got to in your case. Here's the output I got when running on a Windows Parallels machine:
However, this is all worked, so all the output was displayed correctly. If you could get me access to that VM it would make it easier for me to debug and find out what's going on 😉 @kleczekr Thanks for letting me know. I'll try and get this resolved 😊 Super appreciate it! Talk to you guys soon. |
First things first. I am having the same issue. This is the output after running
Just wanna let you know. Regards, Alex |
Hi @tnylea, I added the following after line 47:
Here is what I got:
You can try it on [email protected]. I've submitted a pull request #11 with some suggested fixes. Additionally, I've added a try/catch block when the script attempts to open the URL in the browser. Sincerely; |
@ma2t That's great. I think you're right that it probably would be best to decompress it exactly into the target folder. I'm going to do some testing and make sure this works with all the templates and then I'll probably get this merged within a day or two 👏 Thanks a ton! |
A small adjustment to your test will surely be necessary. |
@ma2t would you mind re-opening another pull request with this fix. I'll have to re-visit in the next few days. I merged in and then tested out the unzipping functionality but it did not work correctly. If you can re-open I'll revisit in a few days. Thanks man! |
Hi @tnylea! One thing, is this problem solved? Please, could you tell anything? |
First off, thank you for creating such an innovative project; the concept is fantastic!
I've run into an issue while trying to initialize a new website, and I was hoping you could help me resolve it.
I tried to create a new website using the static new test-website command. The process failed with an error stating that package.json is missing in the directory. Only a package-lock.json and a starter-main folder were generated.
Steps to Reproduce:
Expected Behavior:
A new website should be initialized with all the required files, including package.json.
Actual Behavior:
The test-website folder was created, but it only contains:
Error Log:
Environment:
The text was updated successfully, but these errors were encountered: