sw-appcache-behavior icon indicating copy to clipboard operation
sw-appcache-behavior copied to clipboard

Installation issues on Win10

Open Nic2012 opened this issue 4 years ago • 1 comments

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

Nic2012 avatar Mar 11 '21 18:03 Nic2012

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?

jeffposnick avatar Mar 16 '21 15:03 jeffposnick