Adding support for CommonJS, ignore npm files, resolve install error