-
-
Notifications
You must be signed in to change notification settings - Fork 375
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
Can't generate certificates on fresh install #262
Comments
Hi. |
I'm fairly certain the file exists...I can navigate to it in a terminal (and an Explorer window). Did a |
I have the same problem and copy pasting the ENOENT file in powershell and executing it works
I think it worked the first time i installed preact-cli |
I have also encountered this problems and looked into it:
let child = execFile(simplehttp2server, ['-listen', ':40210'], {
cwd,
encoding: 'utf8'
}, shouldn't this be in the form Creating the folder solved the ENOENT problem, but simplehttp2server shows no console output Had to pipe to get output
It stays at that and the callback isn't called. |
It's ES6 short-hand syntax, same thing. Could you try and create the btw, Windows sucks. The cwd vs Powershell alone is a huge headache. I'm using Linux Subsystem for development and never comeback |
@thangngoc89 I did that already. It did start simplehttp2server, but it is stuck at |
@ethanroday the issue is when you bootstrap a project using Can you please run the build and try to run I got bit by this a couple of times. probably I'll add the |
I thought |
Had this same problem today. I did the setup in Git Bash and it isn't working. Still haven't found a solution. |
Encountered this today. Only solution I could find was to use Git's bash. Bash for the win! |
Still encountered this issue today. Preact-CLI v2.1.0 Steps to produce the error:
yarn start & yarn build work normally. It seems a problem with yarn serve only. I wonder why my getting started UX in any dev project is always awful 😂 Anyway, I'm so glad to know that a lot of awesome works has been done since v1.1.2 😍 |
Does this work if you install git within WSL? |
For the record, I had a similar issue but it wouldn't even work within WSL or Git Bash. Turned out |
I got the same issue and i tried the npm install --nosave.. but it did not do the trick.
I know this has worked before and the funny thing is that the .exe does exist. |
Alright, I solved it. So I'm typing my commands in the VS Code prompt. Try changing it to cmder with admin rights. Worked for me. |
Hey guys, I've also stumbled upon this error on Linux (Fedora). My error output gave me a better hint of what is happening (2nd line):
Looks like an ENOENT error happens when trying to copy the Creating the |
Same issue here :( |
I am running into this issue currently, nightmare, tried everything it seems with no luck. My system: Windows 10 64bit I tried:
Steps to reproduce:
Result: server error> Error: spawn C:\Users\Sean Knowles\Desktop\Dev\preact\opsap-web\node_modules\simplehttp2server\vendor\simplehttp2server_windows_amd64.exe ENOENT error Command failed with exit code 1. |
Lol just noticed these issues have been going on for over a year, whats the problem, seems that this devCert thing is causing big issues for windows users. I dont have any of these issues with Nextjs or Reactjs, its just with Preact, I cant build and serve the production version. |
It has been a year since my last post 😂. |
Yea same, was literally testing Preact CLI for an mvp then came across this issue and am moving away, it might be trivial but the issue hasn't been resolved for quite some time. |
Not sure why I'm assigned. This wasn't a smooth process for me either. Part of the reason why I've advocated to get rid of This is a permissions thing, and we're totally at the mercy of what My guess is that it has to do with how users' machines have installed |
What's wrong with just using |
The |
Is there a solution, because currently windows users are having trouble/impossible to test production build locally... surely there is a better solution? Basics issues like these just turns me away from using a technology if you catch my drift. This issue has been here for over a year, and just hasn't really been addressed. Admittedly I am junior dev and have no idea how big a fix this is. Is there another way I can test the local build? |
@skdigital Sure, understood. As mentioned it's not something we actually have control over. The best solution was to just get rid of it going forward. In the interim, you can just use any http server on the production directory. For example, I use $ npm install -g sirv-cli
$ npm run build
$ sirv build --single |
Cheers boss, working nice! |
Is there a discord or slack channel for Preact? |
Great! Yup we're over in https://preact.slack.com |
Thought you might be the most appropriate person talk about this, that's why I assigned you |
I had the same issues running
|
Install Git on your Windows, |
...or maybe we can just use a server that actually works? HTTP/2 is an unnecessary feature. If they really want it that badly, they can use their own solution. For me right now, all the |
Have same problem on Ubuntu 18.04. I just a little bit looking around and I discovered that
The vendor directory has created include missed binary file and |
@rrsoftcz |
Steps to reproduce:
npm install -g preact-cli
preact create <app> --yarn
cd <app>
yarn serve
Result:
Environment:
OS: Windows 10 x64
Terminal: Powershell (Administrator mode) (PSVersion: 5.1.14393.1480)
The text was updated successfully, but these errors were encountered: