Reputation: 67
I am trying to learn MEAN stack, i've installed Node,Express,and Angular on my PC using npm, i've also installed Mongo DB and now i am trying to install Mongoose, but i am not able to install it ! i am getting the following error in the command line ! please suggest me a way to install it
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.
C:\Users\nishanth>npm install mongoose
npm WARN peerDependencies The peer dependency kerberos@~0.0 included from mongod
b-core will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerD
ependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it
explicitly.
> [email protected] install C:\Users\nishanth\node_modules\mongoose\node_modules\m
ongodb\node_modules\kerberos
> (node-gyp rebuild) || (exit 0)
\
C:\Users\nishanth\node_modules\mongoose\node_modules\mongodb\node_modules\kerber
os>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_module
s\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )
else (node rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "C:\Python33", you can set th
e PYTHON env variable.
gyp ERR! stack at failNoPython (C:\Program Files\nodejs\node_modules\npm\nod
e_modules\node-gyp\lib\configure.js:116:14)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node
-gyp\lib\configure.js:71:11
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:82:15)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodej
s\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\nishanth\node_modules\mongoose\node_modules\mongodb\node_m
odules\kerberos
gyp ERR! node -v v4.2.1
v3.0.3! node-gyp -v-
gyp ERR! not ok
[email protected] node_modules\mongoose
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], read
[email protected])
C:\Users\nishanth>
Upvotes: 0
Views: 250
Reputation: 519
The above error clearly indicate that one of the dependency module [email protected]
require python as dependency for installation. But it not found in your environment path. Better you should install python and set the path in environment variable. Then try to install the mongoose inside your project directory.
Upvotes: 1