Bitcoinja-lib. bitcoin.payments is null
For some reason the isntalled bitcoinjs-lib didn't include the whole payments folder. I pasted it and then I modify index.js to include and now it works.
I don't understand why the installation goes wrong.