Closed moxley closed 2 years ago
I tested this locally on OS X 11.2.3
with node 15.12.0
and npm 7.7.4
. Tests and linter pass, server runs as expected.
Steps:
$ git clone git@github.com:typicode/hotel.git && cd hotel
$ gh pr checkout 372
$ npm install
$ npm run build # tests fail if you don't run build first
$ npm test
$ npm start
Note npm install
generated a new package-lock.json
with "lockfileVersion": 2
and updates to the dependency tree. I think the new package-lock.json
should be included with the PR.
Note npm install generated a new package-lock.json with "lockfileVersion": 2 and updates to the dependency tree. I think the new package-lock.json should be included with the PR.
@kenkunz: I've made no changes to package.json. If you got changes to package-lock.json, that has nothing to do with this PR. It has to do with the version of npm you have.
duplicate of https://github.com/typicode/hotel/pull/361
Running on MacOS 10.15.7 (Catalina)
Originally I installed and ran Hotel like this:
No errors were returned, and when I tried to access the hotel HTTP service, nothing was listening:
This matches the behavior described in #344.
Next, I cloned the hotel repo, and ran it like this:
The following error showed up in the server output:
After editing src/pid-file.js, converting the numeric port to a string, the service ran without errors.