Missing binding /project/node_modules/node-sass/vendor/linux-x64-64/binding.node while yarn build-all.

Recently I faced an issue while building yarn for one of my projects with the node build all command.

Error Display on CLI when running the command, yarn install && yarn run build-all

Error: Missing binding /home/rakesh/projects/projectName/app/design/frontend/Theme/default/node_modules/node-sass/vendor/linux-x64-64/binding.node

Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 10.x
Continue reading “Missing binding /project/node_modules/node-sass/vendor/linux-x64-64/binding.node while yarn build-all.”

How to fix PHP ArgumentCountError: array_merge() does not accept unknown named parameters?

Recently I have faced an issue in the project while upgrading PHP version 7.* to 8.* and also upgrade composer version 1 from composer 2.

When I checked the pages in the latest version of PHP that used the array_merge(…$this->items) function in PHP 7.4, I got an error like given,

ArgumentCountError: array_merge() does not accept unknown named parameters in Items.php class.

Continue reading “How to fix PHP ArgumentCountError: array_merge() does not accept unknown named parameters?”

How to remove specific item from cart Magento 2?

You can delete specific quote items from the cart by quote id and item id in Magento 2.

With the help of Cart Item Interface, Magento\Quote\Api\CartItemRepositoryInterface you can use the deleteById() method.

Prerequisite to delete quote item:

          • Quote ID
          • Quote Item ID

Continue reading “How to remove specific item from cart Magento 2?”