草庐IT

ruby - 如何在新安装的 Mountain Lion 上安装 libv8 ruby​​ gem?

我一直在为这个问题绞尽脑汁。我已遵循几篇相关帖子中的建议,但无济于事。我从全新安装的MountainLion开始,安装了命令行工具,并根据我发现的其他一些关于通过Homebrew安装gcc-4.2并添加符号链接(symboliclink)的帖子成功安装了Ruby1.8.7/usr/bin/gcc-4.2.但是,现在我无法成功安装libv8。下面的错误是我从现有建议中得到的。任何额外的输入?Gem::Installer::ExtensionBuildError:ERROR:Failedtobuildgemnativeextension./Users/Eric/.rbenv/version

javascript - 如何在 npm 项目中找到 node-gyp 依赖项(..或任何依赖项)

我正在经历难以想象的挫败感,试图让一个项目运行(即通过调用'npminstall'),但它总是被node-gyp绊倒。我在Windows上,所以我需要安装python和类似VisualStudio的东西。长话短说...我不想依赖像VisualStudio这样的烂摊子,所以我想看看这个node-gyp是否可以以某种方式成为可选的,或者被删除的。现在,如果我打开我的package.json文件,我会找到这些依赖项。"devDependencies":{"autoprefixer-stylus":"^0.7.1","browser-sync":"^2.8.2","gulp":"^3.9.0"

windows - 无需构建即可在 Windows 上获取 node-gyp 依赖模块

有很多重要的node-gyp依赖的NodeJS模块,但是要在windows上安装它们需要预装一定数量的软件(python,visualstudio)。这是粗略且耗时的解决方案:只为特定的Windows版本获得合适的Python+VS版本是一个值得挑战的SherlockHolmes技能安装了整个IDE和Python却从不使用它,只是为了在本地获取一次模块?疯狂的。分发此类nodejs应用程序可能需要消费者安装所有与gyp相关的过时软件,这意味着失去99%的消费者。那么将这个问题减少到零的可能性有多大?是否有一些服务为某些平台模块提供预构建?为什么这些模块的开发者不能为主要的windows

node.js - 在 Windows 7 中向 meteor 应用程序添加包时出现“node-gyp rebuild”安装错误

我试图将一个包(mizzao:turkserver)添加到我的Meteor应用程序,但我一直收到此错误:mizzao:turkserver:updatingnpmdependencies--request,libxmljs,validator,querystring,async,deepmerge...gypnpmERR!Windows_NT6.1.7601npmERR!argv"C:\\Users\\PC4all\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.1.3\\mt-os.windows.x86_32\\dev_bund

node.js - 在 Windows 上安装 Node ffi

我正在尝试在我的Windows开发机器上安装node-ffi,但安装失败。根据node-ffiwebpage,Windows应该支持。但是,gyp似乎正试图通过“sh”执行某些操作,这(显然)不存在于我的系统中。有什么想法吗?D:\code\ffi-test>npminstallnode-ffinpmhttpGEThttps://registry.npmjs.org/node-ffinpmhttp304https://registry.npmjs.org/node-ffinpmhttpGEThttps://registry.npmjs.org/bindingsnpmhttp304htt

python - 吉普错误!堆栈错误 : Can't find Python executable

我删除了Node模块,重新安装它,尝试安装npminstall--globalnode-gyp,清理了强制缓存和其他errorC:\Users\danil\work\cryptobetting\node_modules\sha3:Commandfailed.Exitcode:1Command:node-gyprebuildArguments:Directory:C:\Users\danil\work\cryptobetting\node_modules\sha3Output:gypinfoitworkedifitendswithokgypinfousingnode-gyp@4.0.0g

node.js - 如何修复 "gyp ERR! stack Error: Can' t 在 Windows 上找不到 Python 可执行文件 python?

我试图在我的Windows计算机上全局安装chimp但未能成功。这是我看到的错误。有人可以帮我解决这个问题吗?C:\Users\Shahin>npminstall-gchimpnpmWARNdeprecatedbabel-preset-es2015@6.24.1:?ThanksforusingBabel:werecommendusingbabel-preset-envnow:pleasereadbabeljs.io/envtoupdate!npmWARNdeprecatednode-uuid@1.4.8:UseuuidmoduleinsteadC:\Users\Shahin\AppDa

windows - npm 安装错误 : `gyp` failed with exit code: 1

我尝试使用npm5.6.0在Windows10上安装模块。当我输入npminstall时,我得到:gypERR!configureerrorgypERR!stackError:`gyp`failedwithexitcode:1gypERR!stackatChildProcess.onCpExit(C:\Users\xiaooming\Desktop\app\node_modules\node-gyp\lib\configure.js:336:16)gypERR!stackatemitTwo(events.js:126:13)gypERR!stackatChildProcess.emit

javascript - yarn ,node-gyp 重建编译错误,node_modules/fsevents : Command failed

我正在使用Yarn来处理包裹。yarninstall显示错误,无论我使用什么包,但安装看起来成功完成,文件直接设置在node-modules下。(不知何故jquery-ui没有出现在node-modules下)我删除了yarn.lock并再次尝试,但没有成功。有人能帮忙吗?我的环境是这样的:whitebear$yarn-v1.10.1whitebear$node-vv11.0.0whitebear$npm-v6.4.1包.json{"devDependencies":{"@symfony/webpack-encore":"^0.20.0","bootstrap":"^4.1.3","j

c++ - 使用 gyp 的 V8 的 Hello World 示例

由于SCons已被弃用。我使用gyp生成vs解决方案。我按照他们在构建时告诉我的做了BuildingWithGYP.并且v8项目构建正常!我得到了v8_base.lib但没有v8.lib。在helloworld项目中,getstarted.我将lib目录添加到添加库中。但链接失败:正在链接...1>v8test.obj:errorLNK2019:unresolvedexternalsymbol"public:__thiscallv8::HandleScope::~HandleScope(void)"(??1HandleScope@v8@@QAE@XZ)referencedinfunct