However maybe the misunderstanding is even bigger, @user106443 what Espruino device you want to use to run your newly written code? What are you trying to do? Espruino IDE is not meant to be running your javascript code directly in the browser on your Mac OS X. It is targeted for some small device like puck.js
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
From this example https://github.com/nathankellenicki/node-poweredup#nodejs-sample-usage and this source of the module https://github.com/nathankellenicki/node-poweredup/blob/master/src/poweredup-node.ts there is no chance this will work in Espruino as is.
However maybe the misunderstanding is even bigger, @user106443 what Espruino device you want to use to run your newly written code? What are you trying to do? Espruino IDE is not meant to be running your javascript code directly in the browser on your Mac OS X. It is targeted for some small device like puck.js