Failing to get example in the guide to work

I have been trying out various functionality of prism and is stuck on running the client examples.

The first issue is that when I change mock to false, i.e.

import {IHttpConfig} from "@stoplight/prism-http";
const createClientFromOperations = require('@stoplight/prism-http/dist/client').createClientFromOperations;

const config: IHttpConfig = {
    mock: false,
    validateRequest: true,
    validateResponse: true,
    errors: true,
    checkSecurity: false,
};

const client = createClientFromOperations(
    [
        {
            method: 'get',
            path: '/hello',
            id: 'n1',
            servers: [
                {
                    url: 'http://localhost:4010',
                },
            ],
            responses: [{ code: '200'}],
        },
    ],
    config
);
client.get('/hello').then(response => console.log(response)).catch(error => console.log(error));

then I get the following error

TypeError: Cannot read property 'href' of undefined
    at mockOrForward (/Users/edwin.tye/test/node_modules/@stoplight/prism-core/dist/factory.js:40:107)
    at /Users/edwin.tye/test/node_modules/@stoplight/prism-core/dist/factory.js:57:141
    at /Users/edwin.tye/test/node_modules/fp-ts/lib/Either.js:187:75
    at /Users/edwin.tye/test/node_modules/fp-ts/lib/Task.js:84:93
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

but everything works fine when I have mock set to true.

The second issue is that I can’t seem to get past the line

const getHttpOperationsFromSpec = require('@stoplight/prism-cli/dist/operations');

my IDE keeps telling me that the module ‘@stoplight/prism-cli/dist/operations’ does not exists.