chrisvfritz / prerender-spa-plugin

Prerenders static HTML in a single-page application.
MIT License
7.33k stars 634 forks source link

Chromium revision is not downloaded. #263

Open 672064406zerui opened 6 years ago

672064406zerui commented 6 years ago

vue-cli project . npm run build error Chromium revision is not downloaded.

JoshTheDerf commented 6 years ago

Try reinstalling.

barmettlerl commented 6 years ago

have the same issue

ghost commented 6 years ago

Hi, I had the same issue. Try looking at the so called missing Chromium. It may exist but miss some libraries. Just install them with apt-get for example for debian, and it will work.

ghost commented 6 years ago

Here are the resources you need to install : https://gist.github.com/DavidFricker/67319b82b822246f0a1f2c2e60b17b05

JaneTan44 commented 6 years ago

cnpm i 使用淘宝镜像

Timibadass commented 5 years ago

@jnrdt is there a way to fix this on windows?

JoshTheDerf commented 5 years ago

Not sure if you have the exact same issue @Timibadass, but try:

npm rebuild puppeteer
liu2080019 commented 5 years ago

you can download chrome-mac to your project.And set rendererOptions.executablePath

ninofiliu commented 4 years ago

On a side note, the puppeteer renderer is powerful and complete, but it's slow and there are issues like this when requiring Chromium. Oftentimes only the jsdom renderer is needed, it's faster and simpler to setup:

// webpack.config.js
const PrerenderSPAPlugin = require('prerender-spa-plugin');
const JSDOMRenderer = require('@prerenderer/renderer-jsdom');

module.exports = {
  plugins: [
    new PrerenderSPAPlugin({
      renderer: new JSDOMRenderer(),
      // ...
    })
  ],
  // ...
}