Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Magento2 将ScandiPWA安装到现有的Magento 2安装程序_Magento2 - Fatal编程技术网

Magento2 将ScandiPWA安装到现有的Magento 2安装程序

Magento2 将ScandiPWA安装到现有的Magento 2安装程序,magento2,Magento2,我正在尝试在Magento 2.4.2上使用ScndiPWA,但遇到下一个错误消息: sysadmin@DEV-Magento:/var/www/magento2$ sudo composer require scandipwa/spwa-app Do not run Composer as root/super user! See https://getcomposer.org/root for details Continue as root/super user [yes]? y Usin

我正在尝试在Magento 2.4.2上使用ScndiPWA,但遇到下一个错误消息:

sysadmin@DEV-Magento:/var/www/magento2$ sudo composer require scandipwa/spwa-app
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? y
Using version ^0.0.1 for scandipwa/spwa-app
./composer.json has been updated
Running composer update scandipwa/spwa-app
Loading composer repositories with package information
yIn Laminas\DependencyPlugin\DependencyRewriterV2::onPrePoolCreate
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

 Problem 1
  - scandipwa/performance 1.4.3 requires magento/module-inventory-api * -> could not be found in any version, there may be a typo in the package name.
  - scandipwa/spwa-app 0.0.1 requires scandipwa/performance ^1.4.3 -> satisfiable by scandipwa/performance[1.4.3].
  - Root composer.json requires scandipwa/spwa-app ^0.0.1 -> satisfiable by scandipwa/spwa-app[0.0.1].

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability 
 setting
 see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
 - It's a private package and you forgot to add a custom repository to find it

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
sysadmin@DEV-Magento:/var/www/magento2$sudo composer需要scandipwa/spwa应用程序
不要以root/super用户身份运行Composer!看见https://getcomposer.org/root 详情
是否继续作为根用户/超级用户[是]?Y
对scandipwa/spwa应用程序使用版本^0.0.1
./composer.json已更新
正在运行composer更新scandipwa/spwa应用程序
使用包信息加载composer存储库
yIn Laminas\DependencyPlugin\DependencyRewriterV2::OnPrepolCreate
更新依赖项
无法将您的需求解析为可安装的软件包集。
问题1
-scandipwa/performance 1.4.3需要magento/module inventory api*->在任何版本中都找不到,包名中可能有输入错误。
-scandipwa/spwa应用程序0.0.1要求scandipwa/performance ^1.4.3->可满足scandipwa/performance[1.4.3]。
-Root composer.json需要scandipwa/spwa应用程序^0.0.1->可由scandipwa/spwa应用程序[0.0.1]满足。
潜在原因:
-软件包名称中的输入错误
-根据您的最低稳定性,该软件包没有足够稳定的版本
背景
有关更多详细信息,请参阅。
-这是一个私有包,您忘记添加自定义存储库来查找它
阅读了解更多常见问题。
安装失败,将./composer.json和./composer.lock还原为其原始内容。
首先,Magento很好用。但似乎并没有安装magento/module inventory api,或者可能是ScandiPWA安装了magento/module inventory api,但不支持该版本?如何检查magento/module inventory api的版本


谢谢大家!

您遵循什么样的安装程序?我在scandipwa文档的任何地方都找不到“scandipwa/spwa应用程序”的任何引用。我正在使用本手册部署scandipwa: