Skip to content

Instantly share code, notes, and snippets.

@Alexnder
Last active August 29, 2015 14:15
Show Gist options
  • Save Alexnder/7b12d4e0ffd358ab6ff0 to your computer and use it in GitHub Desktop.
Save Alexnder/7b12d4e0ffd358ab6ff0 to your computer and use it in GitHub Desktop.
node windows npm install mongoose bcrypt

mongoose error

node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
child_process: customFds option is deprecated, use stdio instead.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.t argets(64,5): error MSB8020: The build tools for Visual Studio 2010 (Platform T oolset = 'v100') cannot be found. To build using the v100 build tools, please i nstall Visual Studio 2010 build tools.  Alternatively, you may upgrade to the c urrent Visual Studio tools by selecting the Project menu or right-click the sol ution, and then selecting "Upgrade Solution...". [D:\Projects\node\onlineorgani zer\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
You need set visual studio version if you have not VS 2010. Like this:

npm install mongoose --save --msvs_version=2013

bson error

{ [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' }
js-bson: Failed to load c++ bson extension, using pure JS version
connection error: { [MongoError: connect ECONNREFUSED] name: 'MongoError', message: 'connect ECONNREFUSED' }
You need set visual studio version if you have not VS 2010. Like this:

npm install bson --save --msvs_version=2013

Maybe need:
rm -rf node_modules
npm cache clean
npm install --msvs_version=2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment