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

Installation issues on Win10 #28

Open
Nic2012 opened this issue Mar 11, 2021 · 1 comment
Open

Installation issues on Win10 #28

Nic2012 opened this issue Mar 11, 2021 · 1 comment

Comments

@Nic2012
Copy link

Nic2012 commented Mar 11, 2021

With the latest version I am not able to install or build project via npm on Win10, using node v9.11 or v12.13

E:\build\_appCache\sw-appcache-behavior-0.3.0>npm install
> [email protected] install E:\build\_appCache\sw-appcache-behavior-0.3.0\node_modules\puppeteer-firefox
> node install.js
ERROR: Failed to download Firefox rv0.0.1!
Error: Download failed: server returned code 404. URL: https://github.com/puppeteer/juggler/releases/download/v0.0.1/firefox-win64.zip
    at response (E:\build\_appCache\sw-appcache-behavior-0.3.0\node_modules\puppeteer-firefox\lib\BrowserFetcher.js:264:21)
    at ClientRequest.requestCallback (E:\build\_appCache\sw-appcache-behavior-0.3.0\node_modules\puppeteer-firefox\lib\BrowserFetcher.js:320:7)
    at Object.onceWrapper (events.js:272:13)
    at ClientRequest.emit (events.js:180:13)
    at HTTPParser.parserOnIncomingClient (_http_client.js:540:21)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:117:17)
    at TLSSocket.socketOnData (_http_client.js:445:20)
    at TLSSocket.emit (events.js:180:13)
    at addChunk (_stream_readable.js:274:12)
    at readableAddChunk (_stream_readable.js:261:11)
  -- ASYNC --
    at BrowserFetcher.<anonymous> (E:\build\_appCache\sw-appcache-behavior-0.3.0\node_modules\puppeteer-firefox\lib\helper.js:32:15)
    at Object.<anonymous> (E:\build\_appCache\sw-appcache-behavior-0.3.0\node_modules\puppeteer-firefox\install.js:47:16)
    at Module._compile (internal/modules/cjs/loader.js:654:30)
...

After removing puppeteer and running npm run build I got errors that microbundle is missing or misspelled:

E:\build\_appCache\sw-appcache-behavior-0.3.0>npm run build

> [email protected] build E:\build\_appCache\sw-appcache-behavior-0.3.0
> npm run build-sw && npm run build-window


> [email protected] build-sw E:\build\_appCache\sw-appcache-behavior-0.3.0
> cd packages/appcache-polyfill-sw && npm run build && cd -


> [email protected] build E:\build\_appCache\sw-appcache-behavior-0.3.0\packages\appcache-polyfill-sw
> npm run clean && microbundle --name=appcachePolyfill


> [email protected] clean E:\build\_appCache\sw-appcache-behavior-0.3.0\packages\appcache-polyfill-sw
> rimraf build

Der Befehl "microbundle" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `npm run clean && microbundle --name=appcachePolyfill`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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?

Regards,
Nic

@jeffposnick
Copy link
Contributor

In the long run, moving off of puppeteer-firefox and onto a newer version of puppeteer that has Firefox support built-in will probably help with the first problem. I don't have much control over the puppeteer-firefox binary downloads.

Regarding the second issue, it sounds like you need to do an npm ci from the top-level directory to get a local copy of node_modules prior to running the build commands?

Local package.json exists, but node_modules missing, did you mean to install?

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