node-gyp

npm package.json OS specific dependency

不想你离开。 提交于 2019-11-28 21:51:42
问题 Is there a way to specify OS specific dependencies in a npm package.json file? For example, I would only want to install 'dbus' (https://npmjs.org/package/dbus) as a dependency for my module if the user is running Linux. I would have a different dependency for Mac and Windows. 回答1: There's a possible good way of doing this, depending on your setup. npm package.json supports an os key, and also optionalDependencies os can be used to specify which OS a module can be installed on.

node gyp error TRACKER : error TRK0005: Failed to locate: “CL.exe”. The system cannot find the file specified

女生的网名这么多〃 提交于 2019-11-28 13:59:23
问题 I want to install bcrypt on a windows 10 machine with visual studio community 2015, Python v2.7.3 installed but i get the following error. node version v4.2.1 node-gyp v3.0.3 npm install bcrypt C:\Users\ASMIN\Desktop\M2\app>npm install bcrypt npm WARN package.json eapp@1.0.0 No description npm WARN package.json eapp@1.0.0 No repository field. npm WARN package.json eapp@1.0.0 No README data > bcrypt@0.8.5 install C:\Users\ASMIN\Desktop\M2\app\node_modules\bcrypt > node-gyp rebuild C:\Users

error MSB3411: Could not l oad the Visual C++ component “VCBuild.exe”

丶灬走出姿态 提交于 2019-11-28 06:33:27
I have Visual Studio 2010 with SP1 and Windows sdk 7.1. I also have VS2012 and Windows kit 8. when i run Windows SDK 7.1 Command Prompt and run node-gyp build --msvs_version=2010 it gives me error: error MSB3411: Could not load the Visual C++ component "VCBuild.exe". If the component is not installed, either 1) install the Microsoft Windows SDK for Windows Server 2008 and .NET Fr amework 3.5, or 2) install Microsoft Visual Studio 2008. Is it trying to find VCBuild.exe. I found that vcbuild has been replaced with msbuild . Is it a valid error ? I also found that in Windows 7, for .NET 3.5, you

npm install -g karma error MSB4019: The imported project “C:\\Microsoft.Cpp.Default.props” was not found

≡放荡痞女 提交于 2019-11-27 11:43:39
I've been looking into AngularJS and following its install steps, but I get an error running step #1: npm install -g karma Here is the full output: Microsoft Windows [Version 6.2.9200] (c) 2012 Microsoft Corporation. All rights reserved. C:\Users\Travis>node --version v0.10.18 C:\Users\Travis>python --version Python 2.7.3 C:\Users\Travis>npm install -g karma npm http GET https://registry.npmjs.org/karma npm http 304 https://registry.npmjs.org/karma npm http GET https://registry.npmjs.org/di npm http GET https://registry.npmjs.org/socket.io npm http GET https://registry.npmjs.org/chokidar npm

node-gyp build error windows x64

帅比萌擦擦* 提交于 2019-11-27 00:02:19
Here's what I've done so far on my x64 OS: Installed Python (v2.7 --specifically 2.7.6) and added it to the system path (C:\Python27) Installed MS VS C++ 2010 Express Version (I already had VS 2012 but without the C++ component) Installed the compiler update for Windows SDK 7.1 Successfully executed node-gyp configure (from my add-on directory under nodejs\node_modules where binding.gyp is located) ran node-gyp build (as administrator)** This is what crashed, leaving me with: this error: C:\Program Files\nodejs\node_modules\msnodesql>node-gyp build gyp info it worked if it ends with ok gyp

Cannot install node modules that require compilation on Windows 7 x64/VS2012

老子叫甜甜 提交于 2019-11-26 04:29:26
问题 I cannot install any of the modules that require compilation. All they fail with the following error: MSBUILD : error MSB3411: Could not load the Visual C++ component \"VCBuild.exe\". ... My environment: Windows 7 Enterprise x64, version 6.1.7601 node x86 0.8.16 npm 1.2.0 node-gyp 0.8.2 Visual Studio 2012 and numerous packages Related environment variables: Path=C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShel l\\v1.0;C:\\Program Files\