node-gyp

How do I get node-gyp to work on Windows 7 platform

纵然是瞬间 提交于 2019-11-30 13:01:59
问题 My attempts to use node-gyp on a Windows 7 + Node.js platform have failed [3] when attempting to compile the standard "Hello World" example [2]. Note: node-gyp is failing in a similar manner [3] when attempting npm install contextify w or w/o the "-g", thus these could be related issues. Configuration: node-gyp 0.12.2 Windows 7 x64 SP1 Python 2.7 Node.js 0.10.24 Visual Studio 2010 per [1] (also tried 2012) VS SDK 7.1 per [1] (tried 32 and 64 bit versions) running node-gyp from standard

Node.js: Python not found exception due to node-sass and node-gyp

主宰稳场 提交于 2019-11-30 12:31:23
问题 Suddenly in one of my jenkins environment build has started failing, while in local machine it seems to be working fine as i have python installed, From the logs i was able to detect that the problem is with internal dependency that is node-gyp v3.5.0 from node-sass v3.8.0 when i researched by visiting this about node-gyp and found the prerequisite that Python needs to be installed. So my question is that what version of node-sass can i install to bypass this or is there a better solution as

Error installing contextify- node-gyp rebuild failed

不羁岁月 提交于 2019-11-30 07:03:09
Edit I upgraded node and ran "npm install -g contextify" It looks like it installed fine (no errors), but typing in "which contextify" returns nothing. Message while installing contextify: npm http GET https://registry.npmjs.org/contextify npm http 304 https://registry.npmjs.org/contextify npm http GET https://registry.npmjs.org/bindings npm http 304 https://registry.npmjs.org/bindings > contextify@0.1.6 install /usr/local/share/npm/lib/node_modules/contextify > node-gyp rebuild CXX(target) Release/obj.target/contextify/src/contextify.o SOLINK_MODULE(target) Release/contextify.node SOLINK

npm install that requires node-gyp fails on Windows

随声附和 提交于 2019-11-30 06:16:23
问题 I have a NPM project that uses bufferutils and utf-8-validate , both requiring node-gyp to install them. When I do npm install , I get following error: > bufferutil@1.2.1 install C:\Users\Marek\WEB\moje-skoly\web-app\node_modules\bufferutil > node-gyp rebuild C:\Users\Marek\WEB\moje-skoly\web-app\node_modules\bufferutil {git}{hg} {lamb} if not defined npm_config_node_gyp (node "C:\Users\Marek\AppData\Roaming\npm\node_modules\npm\bin\node-g yp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js"

node-gyp troubles with installation

a 夏天 提交于 2019-11-30 05:31:10
问题 I'm trying to install webworker-thread s, a node addon that requires gyp. I followed the gyp instructions for setup, so far I'm still getting an error when trying to " rebuild ": C:\Program Files\nodejs\node_modules\webworker-threads>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild gyp ERR! configure error gyp ERR! stack Error: spawn ENOENT gyp ERR! stack at errnoException (child_process.js:980:11) gyp ERR! stack at Process

How do I get node-gyp to work on Windows 7 platform

谁说我不能喝 提交于 2019-11-30 04:54:24
My attempts to use node-gyp on a Windows 7 + Node.js platform have failed [3] when attempting to compile the standard "Hello World" example [2]. Note: node-gyp is failing in a similar manner [3] when attempting npm install contextify w or w/o the "-g", thus these could be related issues. Configuration: node-gyp 0.12.2 Windows 7 x64 SP1 Python 2.7 Node.js 0.10.24 Visual Studio 2010 per [1] (also tried 2012) VS SDK 7.1 per [1] (tried 32 and 64 bit versions) running node-gyp from standard Windows Command Prompt or SDK7.1 cmd prompt Refs: [1] https://github.com/TooTallNate/node-gyp/wiki/Visual

npm package.json OS specific dependency

一个人想着一个人 提交于 2019-11-30 01:08:57
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. 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. optionalDependencies are module dependencies that if they cannot be installed, npm skips them and continues installing.

npm install that requires node-gyp fails on Windows

前提是你 提交于 2019-11-29 21:03:36
I have a NPM project that uses bufferutils and utf-8-validate , both requiring node-gyp to install them. When I do npm install , I get following error: > bufferutil@1.2.1 install C:\Users\Marek\WEB\moje-skoly\web-app\node_modules\bufferutil > node-gyp rebuild C:\Users\Marek\WEB\moje-skoly\web-app\node_modules\bufferutil {git}{hg} {lamb} if not defined npm_config_node_gyp (node "C:\Users\Marek\AppData\Roaming\npm\node_modules\npm\bin\node-g yp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild ) Building the projects in this solution one at a time. To enable

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

淺唱寂寞╮ 提交于 2019-11-29 18:55:03
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\ASMIN\Desktop\M2\app\node_modules\bcrypt>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs

Error installing contextify- node-gyp rebuild failed

雨燕双飞 提交于 2019-11-29 07:17:14
问题 Edit I upgraded node and ran "npm install -g contextify" It looks like it installed fine (no errors), but typing in "which contextify" returns nothing. Message while installing contextify: npm http GET https://registry.npmjs.org/contextify npm http 304 https://registry.npmjs.org/contextify npm http GET https://registry.npmjs.org/bindings npm http 304 https://registry.npmjs.org/bindings > contextify@0.1.6 install /usr/local/share/npm/lib/node_modules/contextify > node-gyp rebuild CXX(target)