How to switch Node.js version using CLI?

You can easily switch the Node.js version when you have downloaded multiple different versions of Node.js.

You can see the available list of Node.js by running the command,

nvm ls

You will see output like, Continue reading “How to switch Node.js version using CLI?”

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?”