Mocks the npm registry