Using @dfinity/agent in node.js

I think you’ll get an answer in this thread Problems with cross referencing principals