I have recently created a blank workspace but the Node.js (default) runner seems to have problems finding the modules I install globally (with a “npm install -g” command, without “sudo”). After looking for a solution for some time, it seems like the runner does not know the path to search for the modules that NPM installs globally (in my case, at /home/ubuntu/.nvm/versions/node/v4.4.5/lib/node_modules).
I was able to sidestep the problem temporally by including including a “module.paths.push()” command at the beginning of the files, but it is hardly a perfect solution. Has anyone had the same problem? Is there an option or a command to fix this issue? Should it be reported as a bug? (because I understand this should work directly in a blank workspace)