Typo in instructions Bootstrap Libraries Load

Created on 14 March 2021, almost 4 years ago
Updated 19 September 2023, over 1 year ago

Problem/Motivation

When followed instructions on how to load bootstrap libraries composer throws an error

[Symfony\Component\Console\Exception\CommandNotFoundException]
  Command "drupal-scaffold" is not defined.

Steps to reproduce

Follow instructions on the bootstrap barrio project page
Under bootstrap Libraries load This line of code is advised:

    "scripts": {
        "post-install-cmd": [
            "@composer drupal-scaffold"
        ],
        "post-update-cmd": [
            "@composer drupal-scaffold",
+           "mkdir -p web/libraries/bootstrap",
+           "cp -R vendor/twbs/bootstrap/dist web/libraries/bootstrap"
        ],

Proposed resolution

replace "@composer drupal-scaffold", with "@composer drupal:scaffold",

🐛 Bug report
Status

Closed: works as designed

Version

5.5

Component

Documentation

Created by

🇳🇱Netherlands acnimda

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇦🇺Australia pasan.gamage

    I know it's a closed issue but for anyone who comes here for a solution, you can try this snippet in composer instead;

    "scripts": {
            "post-drupal-scaffold-cmd": [
                "mkdir -p web/libraries/bootstrap",
                "cp -R vendor/twbs/bootstrap/dist web/libraries/bootstrap"
            ]
        }
    

    Thanks

Production build 0.71.5 2024