OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – How do I? Questions How can i resolve these errors installation

This topic contains 5 replies, has 2 voices, and was last updated by  Andrey Yatsenko 4 years, 11 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #38766

    grati.amal
    Participant

    I am installing oro platform and I had these errors

    $ php ./bin/console oro:install –timeout=1200
    Installing Oro Application.

    Check system requirements

    In NodeJsVersionChecker.php line 18:

    [Symfony\Component\Debug\Exception\FatalThrowableError]
    Type error: Argument 1 passed to Oro\Bundle\AssetBundle\NodeJsVersionChecke
    r::satisfies() must be of the type string, null given, called in C:\wamp64\
    www\platform\var\OroRequirements.php on line 192

    Exception trace:
    () at C:\wamp64\www\platform\vendor\oro\platform\src\Oro\Bundle\AssetBundle\NodeJsVersionChecke
    r.php:18
    Oro\Bundle\AssetBundle\NodeJsVersionChecker::satisfies() at C:\wamp64\www\platform\var\OroRequi
    rements.php:192
    OroRequirements->__construct() at C:\wamp64\www\platform\vendor\oro\platform\src\Oro\Bundle\Ins
    tallerBundle\Command\CheckRequirementsCommand.php:86
    Oro\Bundle\InstallerBundle\Command\CheckRequirementsCommand->getRequirements() at C:\wamp64\www
    \platform\vendor\oro\platform\src\Oro\Bundle\InstallerBundle\Command\CheckRequirementsCommand.ph
    p:46
    Oro\Bundle\InstallerBundle\Command\CheckRequirementsCommand->execute() at C:\wamp64\www\platfor
    m\vendor\symfony\symfony\src\Symfony\Component\Console\Command\Command.php:255
    Symfony\Component\Console\Command\Command->run() at C:\wamp64\www\platform\vendor\symfony\symfo
    ny\src\Symfony\Component\Console\Application.php:971
    Symfony\Component\Console\Application->doRunCommand() at C:\wamp64\www\platform\vendor\symfony\
    symfony\src\Symfony\Bundle\FrameworkBundle\Console\Application.php:86
    Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at C:\wamp64\www\platform\ve
    ndor\symfony\symfony\src\Symfony\Component\Console\Application.php:248
    Symfony\Component\Console\Application->doRun() at C:\wamp64\www\platform\vendor\symfony\symfony
    \src\Symfony\Bundle\FrameworkBundle\Console\Application.php:74
    Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at C:\wamp64\www\platform\vendor\sy
    mfony\symfony\src\Symfony\Component\Console\Application.php:148
    Symfony\Component\Console\Application->run() at C:\wamp64\www\platform\vendor\oro\platform\src\
    Oro\Bundle\InstallerBundle\CommandExecutor.php:151
    Oro\Bundle\InstallerBundle\CommandExecutor->runCommand() at C:\wamp64\www\platform\vendor\oro\p
    latform\src\Oro\Bundle\InstallerBundle\Command\InstallCommand.php:228
    Oro\Bundle\InstallerBundle\Command\InstallCommand->checkRequirements() at C:\wamp64\www\platfor
    m\vendor\oro\platform\src\Oro\Bundle\InstallerBundle\Command\InstallCommand.php:113
    Oro\Bundle\InstallerBundle\Command\InstallCommand->execute() at C:\wamp64\www\platform\vendor\s
    ymfony\symfony\src\Symfony\Component\Console\Command\Command.php:255
    Symfony\Component\Console\Command\Command->run() at C:\wamp64\www\platform\vendor\symfony\symfo
    ny\src\Symfony\Component\Console\Application.php:971
    Symfony\Component\Console\Application->doRunCommand() at C:\wamp64\www\platform\vendor\symfony\
    symfony\src\Symfony\Bundle\FrameworkBundle\Console\Application.php:86
    Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at C:\wamp64\www\platform\ve
    ndor\symfony\symfony\src\Symfony\Component\Console\Application.php:248
    Symfony\Component\Console\Application->doRun() at C:\wamp64\www\platform\vendor\symfony\symfony
    \src\Symfony\Bundle\FrameworkBundle\Console\Application.php:74
    Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at C:\wamp64\www\platform\vendor\sy
    mfony\symfony\src\Symfony\Component\Console\Application.php:148
    Symfony\Component\Console\Application->run() at C:\wamp64\www\platform\bin\console:29

    oro:check-requirements [-h|–help] [-q|–quiet] [-v|vv|vvv|–verbose] [-V|–version] [–ansi] [-
    -no-ansi] [-n|–no-interaction] [-e|–env ENV] [–no-debug] [–disabled-listeners DISABLED-LISTE
    NERS] [–current-user CURRENT-USER] [–current-organization CURRENT-ORGANIZATION] [–] <command>

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • #38768

    Andrey Yatsenko
    Moderator

    Hi Grati,

    Please specify, which version of oro platform are you trying to install.
    The issue is in failed Node.js version detection. Please make sure, you have Node.js installed.
    Also, it is recommended to update the Node.js to the latest version from https://nodejs.org/en/download

    #38772

    grati.amal
    Participant

    Hi Andrey,
    Thanks my error is the version of node.js.
    Now i’m installing oroplatform but what is the cmd to run App like
    php bin/console server:run in symfony !!

    #38774

    Andrey Yatsenko
    Moderator

    You can use the same command, as Oro is built on top of Symfony standard application.

    However, this built-in server is super slow, and I would not recommend using it. Even symfony is not using bin/console server:run anymore, they’ve switched to the new Symfony local web server. See the Symfony blog post about it for details. The new Symfony local server is pretty easy to configure, it is fast and works with Oro applications out of the box.

    Also, you can use Apache or Nginx, here is the documentation about configuring them for Oro applications
    https://oroinc.com/b2b-ecommerce/doc/current/install-upgrade/recommendations/web-server-configuration

    #38782

    grati.amal
    Participant

    Hi Andrey,
    Thanks a lot for your answers.
    Now i have an application developped with symfony, is there a way to migrate it to oroplatform !!

    #38789

    Andrey Yatsenko
    Moderator

    As Symfony is a low-level framework, it comes without a strict guideline on how to build an application. So the migration flow really depends on the solution that was used before.

    Basically, Oro applications are also based on a Symfony framework so there are probably a lot of common things with your existing application, but at the same time there would be a big difference.

    I had no experience with such a migration to recommend something. In general, it should be easier to migrate the data first to the Oro entities, then go to the business logic and see where you can use the built-in Oro functionality and where you must rewrite the original solution to the Oro’s way.

    If you have some experience with Symfony, I recommend starting from the OroPlatform Architectural guide to understand the basics so it would be more clear for you where to start from.

Viewing 5 replies - 1 through 5 (of 5 total)

The forum ‘OroPlatform – How do I? Questions’ is closed to new topics and replies.

Back to top