Using npm modules without apm

I’m running a not internet connected environment at work and need to understand how I can use npm packages to use in my JavaScript for ATOM plugins that I’m building. I’m trying to load the js-yaml or yaml-js. When move these to node_modules manually and run the required(‘js-yaml’) or (‘yaml-js’) from the node.exe it says missing module.

I can’t use apm install as it tries to goto the internet so not a option.