node.js - installing mongoose on windows -
i trying install mongoose on windows 7 machine
npm install mongoose
but cant work. error is:
kerberos.vcxproj -> d:\dan\revert\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\release\\kerberos.node > bson-ext@0.1.6 install d:\dan\revert\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\bson\node_modules\bson-ext > ./node_modules/node-pre-gyp/bin/node-pre-gyp.js install --fallback-to-build '.' not recognized internal or external command, operable program or batch file. npm warn optional dep failed, continuing bson-ext@0.1.6 npm err! peerinvalid package mongoose not satisfy siblings' peerdependencies requirements! npm err! peerinvalid peer node-restful@0.1.18 wants mongoose@~3 npm err! system windows_nt 6.1.7601 npm err! command "c:\\program files\\nodejs\\\\node.exe" "c:\\program files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "mongoose" npm err! cwd d:\dan\revert npm err! node -v v0.10.34 npm err! npm -v 1.4.28 npm err! code epeerinvalid npm err! not ok code 0
i tried:
- npm install -g node-gyp
- npm uninstall mongodb --save npm install mongoose --save
any idea welcome
i have left comment, don't have enough reputation points.
i agree @user645715, try lower version of mongoose. or install latest node & npm. node version manager (nvm) easy switching between versions of node.
on windows node-gyp build need install python 2.7 , have visual studio build components. install visual studio express. in node-gyp documentation: https://www.npmjs.com/package/node-gyp
Comments
Post a Comment