In my case, I had installed the agent before installing Node + npm. The solution was to uninstall the agent and reconfigure it from scratch