1

I began to develop a project using node.js and mongodb.

To interact with the database, I need to install the package mongoose, but I have been having problems installing it.

Maybe someone already had a similar problem, and knows how to solve it.

I run command npm install mongoose

And get some errors

enter image description here

nbro
  • 15,395
  • 32
  • 113
  • 196
BagrijRoman
  • 249
  • 4
  • 15
  • 1
    Apart from your specific problem, instead of installing each package you need manually, you should specify your dependencies within a `package.json` file, and then you do something like `npm install`. See [here](https://docs.npmjs.com/cli/init) on how to create a `package.json` file. – nbro Nov 13 '15 at 14:35
  • 1
    Install python 2.7 - its required to build these binary type libraries in windows – James LeClair Nov 13 '15 at 15:50

1 Answers1

0

CViejo, thanks for the link, where I found a lot of information on my topic. Usually, this problem is solved by installing Python 2.7 + Visual studio 2010. Иut in my case there were problems with the operating system, just could not understand that. As a solution, I installed new Windows7(64) + Phyton 2.7.1 + Visual studio 2013 + nodeJS (x86). and try npm install mongoose - it work.

Thank you for help in my problem.

BagrijRoman
  • 249
  • 4
  • 15