Reputation: 1015
I have installed a package using npm install https://github.com/langateam/sails-swagger.git --save
. It installed successfully in the node_module folder of my current directory. But when I run the application then it shows error Can not find module sails-swagger
.
I am using the sails js framework for node.
Upvotes: 2
Views: 456
Reputation: 70406
I tested it and faced the same problem. Luckily I was able to fix it.
rm -rf node_modules
"sails-swagger": "0.5.1"
to package.json
npm install
config/swagger.js
as described here https://github.com/langateam/sails-swagger#configurationsails lift
and visit localhost:1337/swagger/docUpvotes: 1