Giter Site home page Giter Site logo

Comments (4)

hagopj13 avatar hagopj13 commented on May 7, 2024 1

@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.

arkanos avatar arkanos commented on May 7, 2024

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.

hagopj13 avatar hagopj13 commented on May 7, 2024

@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.

arkanos avatar arkanos commented on May 7, 2024

Wo, did not think about it!

Perfect then, thanks!

from node-express-boilerplate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.