Fixing bug which prevented 'npm install <packagename>' from working