Open skulltech opened 7 years ago
there are severals errors like this issue. That is due to packages non listed in the package.json. run "npm install --save 'name_of_the_package_in_the_error'".
Even installing the proper npm modules will not solve these issues, unfortunately.
Because npm flattened out their dependency module loading post v3.0, this tutorial is way out-of date. There are several places you need to touch in order to make sure you can get everything working appropriately.
Please note that the below solution only works if you are using Sails ~0.10.x, per the included package.json
Firstly, install the 'connect' module, as it is omitted from the package.json file included with this repo.
npm install connect --save
Then, you will need to touch the following files and adjust the require references by removing the nested node path.
_/using-passport/nodemodules/sails/lib/hooks/session/index.js
--> Has 2 references to connect
, and one to cookie
_/using-passport/nodemodules/sails/lib/hooks/sockets/lib/loadSocketIO.js
--> Has 2 references to redis
_/using-passport/nodemodules/sails/lib/hooks/sockets/lib/authorization.js
--> Has 2 references to connect
, and one to cookie
and finally, adjusting the grunt-cli references in
_/using-passport/nodemodules/sails/lib/hooks/grunt/index.js
path.join(pathToSails,'../grunt-cli/bin/grunt'),
Running
sails lift
gives the following error.