- r - 以节省内存的方式增长 data.frame
- ruby-on-rails - ruby/ruby on rails 内存泄漏检测
- android - 无法解析导入android.support.v7.app
- UNIX 域套接字与共享内存(映射文件)
抱歉,如果之前有人问过/回答过这个问题。我在谷歌上发现的类似问题要么有公开票,要么有人建议降级依赖项。我不清楚构建失败的原因,当它似乎在我的本地机器上正常工作时。
感谢您提供的任何帮助!
Counting objects: 28, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (26/26), done.
Writing objects: 100% (28/28), 2.72 KiB | 0 bytes/s, done.
Total 28 (delta 19), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Node.js app detected
remote:
remote: -----> Creating runtime environment
remote:
remote: NPM_CONFIG_LOGLEVEL=error
remote: NPM_CONFIG_PRODUCTION=true
remote: NODE_ENV=production
remote: NODE_MODULES_CACHE=true
remote:
remote: -----> Installing binaries
remote: engines.node (package.json): 4.1.1
remote: engines.npm (package.json): 2.14.4
remote:
remote: Downloading and installing node 4.1.1...
remote: npm 2.14.4 already installed with node
remote:
remote: -----> Restoring cache
remote: Skipping cache (new runtime signature)
remote:
remote: -----> Building dependencies
remote: Pruning any extraneous modules
remote: Installing node modules (package.json)
remote:
remote: > node-sass@0.9.6 install /tmp/build_506a4990caa900fce789184be89dc03b/node_modules/gulp-sass/node_modules/node-sass
remote: > node build.js
remote:
remote: (node) child_process: options.customFds option is deprecated. Use options.stdio instead.
remote: make: Entering directory `/tmp/build_506a4990caa900fce789184be89dc03b/node_modules/gulp-sass/node_modules/node-sass/build'
remote: CXX(target) Release/obj.target/binding/binding.o
remote: In file included from ../binding.cpp:1:0:
remote: ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Signature> NanNew(v8::Handle<v8::FunctionTemplate>, int, v8::Handle<v8::FunctionTemplate>*)’:
remote: ../node_modules/nan/nan.h:189:78: error: no matching function for call to ‘v8::Signature::New(v8::Isolate*, v8::Handle<v8::FunctionTemplate>&, int&, v8::Handle<v8::FunctionTemplate>*&)’
remote: return v8::Signature::New(v8::Isolate::GetCurrent(), receiver, argc, argv);
remote: ^
remote: ../node_modules/nan/nan.h:189:78: note: candidate is:
remote: In file included from /app/.node-gyp/4.1.1/include/node/node.h:42:0,
remote: from ../node_modules/nan/nan.h:23,
remote: from ../binding.cpp:1:
remote: /app/.node-gyp/4.1.1/include/node/v8.h:4675:27: note: static v8::Local<v8::Signature> v8::Signature::New(v8::Isolate*, v8::Local<v8::FunctionTemplate>)
remote: static Local<Signature> New(
remote: ^
remote: /app/.node-gyp/4.1.1/include/node/v8.h:4675:27: note: candidate expects 2 arguments, 4 provided
remote: In file included from ../binding.cpp:1:0:
remote: ../node_modules/nan/nan.h: At global scope:
remote: ../node_modules/nan/nan.h:271:3: error: redefinition of ‘v8::Local<T> NanNew(P) [with T = v8::StringObject; P = v8::Local<v8::String>]’
remote: NanNew<v8::StringObject, v8::Handle<v8::String> >(
remote: ^
remote: ../node_modules/nan/nan.h:264:3: error: ‘v8::Local<T> NanNew(P) [with T = v8::StringObject; P = v8::Local<v8::String>]’ previously declared here
remote: NanNew<v8::StringObject, v8::Local<v8::String> >(
remote: ^
remote: ../node_modules/nan/nan.h:289:36: error: redefinition of ‘template<class T> v8::Local<v8::RegExp> NanNew(v8::Local<v8::String>, v8::RegExp::Flags)’
remote: NAN_INLINE v8::Local<v8::RegExp> NanNew(
remote: ^
remote: ../node_modules/nan/nan.h:283:36: error: ‘template<class T> v8::Local<v8::RegExp> NanNew(v8::Handle<v8::String>, v8::RegExp::Flags)’ previously declared here
remote: NAN_INLINE v8::Local<v8::RegExp> NanNew(
remote: ^
remote: ../node_modules/nan/nan.h:301:36: error: redefinition of ‘template<class T, class P> v8::Local<v8::RegExp> NanNew(v8::Local<v8::String>, v8::RegExp::Flags)’
remote: NAN_INLINE v8::Local<v8::RegExp> NanNew(
remote: ^
remote: ../node_modules/nan/nan.h:295:36: error: ‘template<class T, class P> v8::Local<v8::RegExp> NanNew(v8::Handle<v8::String>, v8::RegExp::Flags)’ previously declared here
remote: NAN_INLINE v8::Local<v8::RegExp> NanNew(
remote: ^
remote: ../node_modules/nan/nan.h:481:19: error: ‘NanNew’ declared as an ‘inline’ variable
remote: v8::String::ExternalAsciiStringResource *resource) {
remote: ^
remote: ../node_modules/nan/nan.h:481:19: warning: ‘always_inline’ attribute ignored [-Wattributes]
remote: ../node_modules/nan/nan.h:481:19: error: ‘v8::Local<v8::String> NanNew’ redeclared as different kind of symbol
remote: ../node_modules/nan/nan.h:475:36: error: previous declaration of ‘v8::Local<v8::String> NanNew(v8::String::ExternalStringResource*)’
remote: NAN_INLINE v8::Local<v8::String> NanNew(
remote: ^
remote: ../node_modules/nan/nan.h:481:7: error: ‘ExternalAsciiStringResource’ is not a member of ‘v8::String’
remote: v8::String::ExternalAsciiStringResource *resource) {
remote: ^
remote: ../node_modules/nan/nan.h:481:48: error: ‘resource’ was not declared in this scope
remote: v8::String::ExternalAsciiStringResource *resource) {
remote: ^
remote: ../node_modules/nan/nan.h:495:27: error: redefinition of ‘template<class T> v8::Local<T> _NanEscapeScopeHelper(v8::Local<T>)’
remote: NAN_INLINE v8::Local<T> _NanEscapeScopeHelper(v8::Local<T> val) {
remote: ^
remote: ../node_modules/nan/nan.h:490:27: error: ‘template<class T> v8::Local<T> _NanEscapeScopeHelper(v8::Handle<T>)’ previously declared here
remote: NAN_INLINE v8::Local<T> _NanEscapeScopeHelper(v8::Handle<T> val) {
remote: ^
remote: ../node_modules/nan/nan.h:755:13: error: ‘node::smalloc’ has not been declared
remote: , node::smalloc::FreeCallback callback
remote: ^
remote: ../node_modules/nan/nan.h:755:35: error: expected ‘,’ or ‘...’ before ‘callback’
remote: , node::smalloc::FreeCallback callback
remote: ^
remote: ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(char*, size_t, int)’:
remote: ../node_modules/nan/nan.h:759:50: error: ‘callback’ was not declared in this scope
remote: v8::Isolate::GetCurrent(), data, length, callback, hint);
remote: ^
remote: ../node_modules/nan/nan.h:759:60: error: ‘hint’ was not declared in this scope
remote: v8::Isolate::GetCurrent(), data, length, callback, hint);
remote: ^
remote: ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(const char*, uint32_t)’:
remote: ../node_modules/nan/nan.h:766:67: error: call of overloaded ‘New(v8::Isolate*, const char*&, uint32_t&)’ is ambiguous
remote: return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
remote: ^
remote: ../node_modules/nan/nan.h:766:67: note: candidates are:
remote: In file included from ../node_modules/nan/nan.h:24:0,
remote: from ../binding.cpp:1:
remote: /app/.node-gyp/4.1.1/include/node/node_buffer.h:31:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, v8::Local<v8::String>, node::encoding) <near match>
remote: NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
remote: ^
remote: /app/.node-gyp/4.1.1/include/node/node_buffer.h:31:40: note: no known conversion for argument 3 from ‘uint32_t {aka unsigned int}’ to ‘node::encoding’
remote: /app/.node-gyp/4.1.1/include/node/node_buffer.h:43:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t) <near match>
remote: NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
remote: ^
remote: /app/.node-gyp/4.1.1/include/node/node_buffer.h:43:40: note: no known conversion for argument 2 from ‘const char*’ to ‘char*’
remote: In file included from ../binding.cpp:1:0:
remote: ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(uint32_t)’:
remote: ../node_modules/nan/nan.h:770:61: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((size_t)size))’ from ‘v8::MaybeLocal<v8::Object>’ to ‘v8::Local<v8::Object>’
remote: return node::Buffer::New(v8::Isolate::GetCurrent(), size);
remote: ^
remote: ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanBufferUse(char*, uint32_t)’:
remote: ../node_modules/nan/nan.h:777:12: error: ‘Use’ is not a member of ‘node::Buffer’
remote: return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
remote: ^
remote: ../node_modules/nan/nan.h: In function ‘bool _NanGetExternalParts(v8::Handle<v8::Value>, const char**, size_t*)’:
remote: ../node_modules/nan/nan.h:2103:12: error: ‘class v8::String’ has no member named ‘IsExternalAscii’
remote: if (str->IsExternalAscii()) {
remote: ^
remote: ../node_modules/nan/nan.h:2104:11: error: ‘ExternalAsciiStringResource’ in ‘class v8::String’ does not name a type
remote: const v8::String::ExternalAsciiStringResource* ext;
remote: ^
remote: ../node_modules/nan/nan.h:2105:5: error: ‘ext’ was not declared in this scope
remote: ext = str->GetExternalAsciiStringResource();
remote: ^
remote: ../node_modules/nan/nan.h:2105:16: error: ‘class v8::String’ has no member named ‘GetExternalAsciiStringResource’
remote: ext = str->GetExternalAsciiStringResource();
remote: ^
remote: ../binding.cpp: In function ‘void MakeCallback(uv_work_t*)’:
remote: ../binding.cpp:138:35: warning: ‘void node::FatalException(const v8::TryCatch&)’ is deprecated (declared at /app/.node-gyp/4.1.1/include/node/node.h:282): Use FatalException(isolate, ...) [-Wdeprecated-declarations]
remote: node::FatalException(try_catch);
remote: ^
remote: make: *** [Release/obj.target/binding/binding.o] Error 1
remote: make: Leaving directory `/tmp/build_506a4990caa900fce789184be89dc03b/node_modules/gulp-sass/node_modules/node-sass/build'
remote: gyp ERR! build error
remote: gyp ERR! stack Error: `make` failed with exit code: 2
remote: gyp ERR! stack at ChildProcess.onExit (/tmp/build_506a4990caa900fce789184be89dc03b/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
remote: gyp ERR! stack at emitTwo (events.js:87:13)
remote: gyp ERR! stack at ChildProcess.emit (events.js:172:7)
remote: gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
remote: gyp ERR! System Linux 3.13.0-61-generic
remote: gyp ERR! command "/tmp/build_506a4990caa900fce789184be89dc03b/.heroku/node/bin/node" "/tmp/build_506a4990caa900fce789184be89dc03b/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
remote: gyp ERR! cwd /tmp/build_506a4990caa900fce789184be89dc03b/node_modules/gulp-sass/node_modules/node-sass
remote: gyp ERR! node -v v4.1.1
remote: gyp ERR! node-gyp -v v3.0.3
remote: gyp ERR! not ok
remote: Build failed
remote: npm ERR! Linux 3.13.0-61-generic
remote: npm ERR! argv "/tmp/build_506a4990caa900fce789184be89dc03b/.heroku/node/bin/node" "/tmp/build_506a4990caa900fce789184be89dc03b/.heroku/node/bin/npm" "install" "--unsafe-perm" "--userconfig" "/tmp/build_506a4990caa900fce789184be89dc03b/.npmrc"
remote: npm ERR! node v4.1.1
remote: npm ERR! npm v2.14.4
remote: npm ERR! code ELIFECYCLE
remote:
remote: npm ERR! node-sass@0.9.6 install: `node build.js`
remote: npm ERR! Exit status 1
remote: npm ERR!
remote: npm ERR! Failed at the node-sass@0.9.6 install script 'node build.js'.
remote: npm ERR! This is most likely a problem with the node-sass package,
remote: npm ERR! not with npm itself.
remote: npm ERR! Tell the author that this fails on your system:
remote: npm ERR! node build.js
remote: npm ERR! You can get their info via:
remote: npm ERR! npm owner ls node-sass
remote: npm ERR! There is likely additional logging output above.
remote:
remote: npm ERR! Please include the following file with any support request:
remote: npm ERR! /tmp/build_506a4990caa900fce789184be89dc03b/npm-debug.log
remote:
remote: -----> Build failed
remote:
remote: We're sorry this build is failing! You can troubleshoot common issues here:
remote: https://devcenter.heroku.com/articles/troubleshooting-node-deploys
remote:
remote: If you're stuck, please submit a ticket so we can help:
remote: https://help.heroku.com/
remote:
remote: Love,
remote: Heroku
remote:
remote:
remote: ! Push rejected, failed to compile Node.js app
remote:
remote: Verifying deploy....
remote:
remote: ! Push rejected to [REPOSITORY].
remote:
To https://git.heroku.com/[REPOSITORY].git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/[REPOSITORY].git'
最佳答案
我遇到了完全相同的问题。将 node
版本从 4.1.1
降级到 0.12.2
解决了我的问题。
关于git - Heroku 推送无法编译。错误指向 node-sass。可能的依赖不匹配,包括日志,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32769910/
这很可能是我的语法错误,因为我对在 C++ 中使用多个文件和结构(特别是将结构传递给函数)还很陌生。这是三个文件: 主要.cpp: #include #include #include #inc
我有 TypeScript NestJS 项目。 我需要验证传入的 DTO 到我的 API。它可以被描述为“创建项目”,其中我们有建筑类型(房屋、公寓、花园),并根据该类型我们需要定义: 房屋:楼层包
是否可以从可用于泛型参数的可能类型集中排除特定类型?如果是如何。 例如 Foo() : where T != bool 将意味着除了类型 bool 之外的任何类型。 编辑 为什么? 以下代码是我尝试强
我的 WebGL 体积光线转换应用程序即将完成。但是我发现了一个问题。我必须通过 2D 纹理模拟 3D 纹理。这不是问题。我正在用小切片创建一个巨大的纹理。巨大纹理的尺寸约为 4096x4096 像素
我正在处理的网页上显示了一个返回顶部按钮。当您向下滚动时,有时单击它时,它会跳到顶部,然后跳回您在页面上的位置,然后像预期的那样平滑滚动到顶部。请记住,它并不总是这样做。这只是一个滞后或故障问题还是我
我对此还很陌生,所以请耐心等待。 我有一个类,它具有三个属性:几个整数和一个用户定义对象的集合。 public class Response { public int num1 { get;
我正在制作一款平台游戏,让玩家每 30 毫秒跳跃一次,并向上添加少量的力。我想我应该使用多线程,因为我之前已经做过一些,而且看起来很简单。无论如何,我尝试了这个: public void jump()
是否可以从可能的类型集中排除特定类型,这些类型可以在泛型参数中使用?如果是这样的话。 例如 Foo() : where T != bool 表示除 bool 类型之外的任何类型。 编辑 为什么? 以下
我正在尝试在单个查询中实现内部和外部联接,我不确定我的做法是正确还是错误,因为我不太擅长查询。 就这样吧。 我有以下表格。 hrs_residentials hrs_residential_utili
关于 my website ,有一段代码可以向页面添加几个元素。这段代码不是我可以编辑的东西,而且我对它放置这些元素的位置不满意,因为它弄乱了我的一些布局。所以我想出了一个小的 jQuery 来将它们
一位客户希望我创建一个数据集,如下所示。我不知道这是否可能或合乎逻辑。 我有表parent: id name ------- ------- 1 parent1 2
这可能吗?google 好像没有这方面的资料.. 这样,如果用户在另一个网站上播放视频或歌曲,我的音量就会自动减小 最佳答案 不,这是不可能的。 如果可能的话,它必须是特定于浏览器的,但我不认为这种情
所以我正在尝试制作响应式页面。问题是为什么它归结为移动数据需要位于列表中。 我会用一些示例代码来解释 所以这可能是桌面上的输出 option1
当您将鼠标悬停在a 元素 上时,是否可以删除url? 这就是我的意思: 最佳答案 一种选择是使用一些 JavaScript。 删除 href=来自 的属性标签,取而代之的是 onclick=...
我已经考虑了几个小时,但我无法取得太大进展。它是这样的: You have an array of size n and q queries. Each query is of the form (l
我一直在尝试编写一个脚本来强化 android。我没有成功! 我正在通过模拟器运行一个 AVD,并且已经用我加载的 android shell 和 bash shell 试过了。正如您将在下面看到的那
Private Sub Workbook_Open() Dim WBname As String WBname = ThisWorkbook.name If Not InStr(WBname, "te
Spark 2.0.0-预览版 我们有一个应用程序使用了相当大的广播变量。我们在大型 EC2 实例上运行它,因此部署处于客户端模式。广播变量是一个巨大的 Map[String, Array[Strin
我正在尝试从此link中提取摘要。但是,我无法仅提取摘要的内容。到目前为止,这是我完成的工作: url <- "http://www.scielo.br/scielo.php?script=sci_a
我的主页中有一个iframe。 iframe页面中有一个modalpopup。因此,当显示modalpopup时,modalpopup的父级是iframe主体和主页父级主体。因此,覆盖层仅覆盖ifra
我是一名优秀的程序员,十分优秀!