Node.js/webpack:修订间差异
来自康健生活
| 第683行: | 第683行: | ||
* {{Underline|vue 提取 css 失败|red|green}},用排除法,找到原因:package.json 中的 sideEffects,删除即可 | * {{Underline|vue 提取 css 失败|red|green}},用排除法,找到原因:package.json 中的 sideEffects,删除即可 | ||
* UnhandledPromiseRejectionWarning: Error: Failed to launch chrome! | * UnhandledPromiseRejectionWarning: Error: Failed to launch chrome! | ||
*: < | *: <syntaxhighlight lang="text"> | ||
(node:51153) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. | (node:51153) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. | ||
Error: Failed to launch chrome! | Error: Failed to launch chrome! | ||
| 第689行: | 第689行: | ||
TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md | TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md | ||
at onClose (/root/vue-webpack/node_modules/puppeteer/lib/Launcher.js:342:14) | at onClose (/root/vue-webpack/node_modules/puppeteer/lib/Launcher.js:342:14) | ||
</ | </syntaxhighlight> | ||
*: headless:false参数,Linux服务器没有图形界面没有办法运行。 | *: headless:false参数,Linux服务器没有图形界面没有办法运行。 | ||
* ERROR: Failed to download Chromium r637110! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download. | * ERROR: Failed to download Chromium r637110! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download. | ||