Ste*_*mer 2 chromium npm shopware puppeteer shopware6
当我尝试编译shopware 6时
./bin/build-storefront.sh
我收到一条错误消息,提示 Chromium 下载无法完成。
npm ERR! code 1
npm ERR! path /home/username/vendor/shopware/storefront/Resources/app/storefront/node_modules/puppeteer
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! ERROR: Failed to set up Chromium r950341! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download.
npm ERR! [Error: EINVAL: invalid argument, realpath '/home/username/vendor/shopware/storefront/Resources/app/storefront/node_modules/puppeteer/.local-chromium/linux-950341'] {
npm ERR! errno: -22,
npm ERR! code: 'EINVAL',
npm ERR! syscall: 'realpath',
npm ERR! path: '/home/username/vendor/shopware/storefront/Resources/app/storefront/node_modules/puppeteer/.local-chromium/linux-950341'
npm ERR! }
npm ERR! A complete log of this run can be found in:
npm ERR! /home/username/.npm/_logs/2022-09-14T08_03_06_847Z-debug.log
Run Code Online (Sandbox Code Playgroud)
(我在这里用用户名替换了真实的用户名和商店名文件夹。)
我检查了该文件夹/home/username/vendor/shopware/storefront/Resources/app/storefront/node_modules/,但它是空的。
我应该在 shoproot 中运行 npm install 吗?
在高级开发的系统中运行 npm install 是保存还是会破坏东西?
当然,我会先进行备份,但我不确定是否可以运行它。该商店是一个完整运行的商店软件系统的暂存系统,具有一些扩展和自定义主题。
您可以设置一个环境变量来跳过下载。在运行店面构建脚本之前执行此操作。
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
681 次 |
| 最近记录: |