Comments (4)
@arkanos I tried to reproduce the problem you are facing but couldn't (it's working fine with me).
Generally, when you clone the repo, do npm install
, and then cp .env.example .env
, and then npm run dev
, accessing http://localhost:3000/v1/docs/
should already open a working documentation.
I have v4.1.4
of swagger-ui-express
and v4.2.0
of swagger-jsdoc
installed. Can you check if you have these versions? Can you also check if you have node v12+?
from node-express-boilerplate.
Hi @hagopj13 , I'm using node version 12.19:
PS C:\Users\ruben\Desktop\node-express-mongoose-boilerplate> node -v
v12.19.0
And these versions for the swagger packages from package.json out of the box:
"passport": "^0.4.0",
"passport-jwt": "^4.0.0",
"pm2": "^4.1.2",
"swagger-jsdoc": "^4.0.0",
"swagger-ui-express": "^4.1.4",
"validator": "^13.0.0",
"winston": "^3.2.1",
"xss-clean": "^0.1.1"
I have updated swagger-jsdoc to 4.2.0 with same results, and even tried mcu to have the latest packages version.
I am currently using Windows, if it might help. I will try on Ubuntu in a few hours and come back to you.
Thanks!
from node-express-boilerplate.
@arkanos I just tried it on Windows on a new clone of the repo, and faced the same issue. I was able to make it work by doing yarn install
instead of npm install
. The project is using yarn.lock
to lock the dependency versions, and it seems like the problem is occurring when you install using npm.
from node-express-boilerplate.
Wo, did not think about it!
Perfect then, thanks!
from node-express-boilerplate.
Related Issues (20)
- Pagination Query for 'ref' documents.
- Implement oAuth Login
- pm2: command not found when run docker compose
- Can you upgrade the dependency?
- Authentication: Is refresh token never expired? HOT 4
- Multiple roles/permissions HOT 2
- Can we add commit message lint?
- Can we use release-please for the release notes and create the tags in the GIT?
- API documentation : HTTP basic authentication? HOT 1
- ERROR [node-app 5/6] RUN yarn install --pure-lockfile HOT 2
- logout api only invalidate the refresh token, but the auth token is still valid until it expires HOT 2
- xss-clean - Package no longer supported
- It adds new refresh token when another token already exist for logged in user HOT 2
- Incorrect docs route unit test
- Validation middleware isn't working with external validation HOT 5
- req.body undefined HOT 1
- Mongoose V5.5.3+ introduced .remove() deprecation
- Same token generated all the time HOT 1
- Tests failing due to MongoWriteConcern
- MongoDB data loss
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-express-boilerplate.