I just want to POST user details in pardot after the user registration

hope you’ve already solved your problem.
However, to make things clear - the exception says that you’ve referenced object that is node.js is not aware of.
Basically, what you need is to import corresponding module to your hook.
Add the following line

    var request = require('request');

good luck!