Skip to content

add node package in magento 2

How to add Node packages to your Magento 2 site. how to implement in require-config.js using knockout js.

I have already applied the commands below file.

/var/www/html/project/app/code/vendor/module/view/frontend/

npm install @web3modal/ethers5 [email protected]

after I add below code add require-config.js for example.

var config = {
paths: {
    ethers: 'Vendor_Module/node_modules/@web3modal/ethers5'
}
};

but my Magento frontend side does not show js. so please help me. how can I implement it?