git-http-mock-server icon indicating copy to clipboard operation
git-http-mock-server copied to clipboard

Insufficient setup guide

Open Haegi opened this issue 5 years ago • 0 comments
trafficstars

When trying to use the git-http-mock-server I am unable to start the server. First I initialized my directory with npm init and provided it with some pseudo information.

{
  "name": "example",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "dependencies": {},
  "devDependencies": {
    "git-http-mock-server": "^2.0.0"
  },
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC"
}

Then followed the README and installed the git-http-mock-server with:

npm install --save-dev git-http-mock-server

When executing git-http-mock-server it returns:

command not found: git-http-mock-server

Running it with npx fixes the problem but this is not documented in the README.

npx git-http-mock-server

Haegi avatar Nov 12 '20 15:11 Haegi