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

It doesn't work on windows #10

Closed
carlosds731 opened this issue Jul 9, 2021 · 3 comments
Closed

It doesn't work on windows #10

carlosds731 opened this issue Jul 9, 2021 · 3 comments

Comments

@carlosds731
Copy link

carlosds731 commented Jul 9, 2021

If I do npm install -D miniflare, I get the following error:

> whatwg-stream-to-async-iter@0.3.3 postinstall C:\Users\carlo\WebstormProjects\miniflare\node_modules\whatwg-stream-to-async-iter
> shx ls index.js >> /dev/null 2>&1 || npm run build

The system cannot find the path specified.

> whatwg-stream-to-async-iter@0.3.3 build C:\Users\carlo\WebstormProjects\miniflare\node_modules\whatwg-stream-to-async-iter
> npm run build:mjs & npm run build:cjs & wait


> whatwg-stream-to-async-iter@0.3.3 build:mjs C:\Users\carlo\WebstormProjects\miniflare\node_modules\whatwg-stream-to-async-iter
> tsc -p tsconfig.json


> whatwg-stream-to-async-iter@0.3.3 build:cjs C:\Users\carlo\WebstormProjects\miniflare\node_modules\whatwg-stream-to-async-iter
> tsc -p tsconfig.cjs.json && npm run sed && npm run mv


> whatwg-stream-to-async-iter@0.3.3 sed C:\Users\carlo\WebstormProjects\miniflare\node_modules\whatwg-stream-to-async-iter
> shx sed -i 's/\.(.*)\.js/\.$1\.cjs/g' cjs/*.js > /dev/null

The system cannot find the path specified.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! whatwg-stream-to-async-iter@0.3.3 sed: `shx sed -i 's/\.(.*)\.js/\.$1\.cjs/g' cjs/*.js > /dev/null `
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the whatwg-stream-to-async-iter@0.3.3 sed script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\carlo\AppData\Roaming\npm-cache\_logs\2021-07-09T19_04_22_743Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! whatwg-stream-to-async-iter@0.3.3 build:cjs: `tsc -p tsconfig.cjs.json && npm run sed && npm run mv`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the whatwg-stream-to-async-iter@0.3.3 build:cjs script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\carlo\AppData\Roaming\npm-cache\_logs\2021-07-09T19_04_22_795Z-debug.log
'wait' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! whatwg-stream-to-async-iter@0.3.3 build: `npm run build:mjs & npm run build:cjs & wait`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the whatwg-stream-to-async-iter@0.3.3 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\carlo\AppData\Roaming\npm-cache\_logs\2021-07-09T19_04_22_884Z-debug.log
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN miniflare-example@1.0.0 No description
npm WARN miniflare-example@1.0.0 No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! whatwg-stream-to-async-iter@0.3.3 postinstall: `shx ls index.js >> /dev/null 2>&1 || npm run build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the whatwg-stream-to-async-iter@0.3.3 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\carlo\AppData\Roaming\npm-cache\_logs\2021-07-09T19_04_23_100Z-debug.log

2021-07-09T19_04_23_100Z-debug.log.

It seems to be a problem with the dependency whatwg-stream-to-async-iter.

@mrbbot
Copy link
Contributor

mrbbot commented Jul 9, 2021

Hello! 👋 I'm aware of this issue. The problem as you point out is due to whatwg-stream-to-async-iter, one of the dependencies of the package I'm using for HTMLRewriter. I'm hoping to switch to a lol-html based implementation in the next release (just sorting out some licensing issues), so it should be fixed then. In the meantime, if you've got the Windows Subsystem for Linux installed, you could try install Miniflare with that instead.

@mrbbot mrbbot closed this as completed in 65037a1 Jul 10, 2021
@mrbbot
Copy link
Contributor

mrbbot commented Jul 10, 2021

Fixed in version 1.2.0! 🎉

@carlosds731
Copy link
Author

Hello! 👋 I'm aware of this issue. The problem as you point out is due to whatwg-stream-to-async-iter, one of the dependencies of the package I'm using for HTMLRewriter. I'm hoping to switch to a lol-html based implementation in the next release (just sorting out some licensing issues), so it should be fixed then. In the meantime, if you've got the Windows Subsystem for Linux installed, you could try install Miniflare with that instead.

Tahnk very much for your reply

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

No branches or pull requests

2 participants