- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
我无法进行完整的 npm 安装。每当我尝试时,我都会收到此消息:
node-pre-gyp ERR! Tried to download: https://node-inspector.s3.amazonaws.com/debug/v0.4.6/node-v46-linux-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for v8-debug@0.4.6 and node@4.4.5 (node-v46 ABI) (falling back to source compile with node-gyp)
我在用
node v4.4.5
npm v2.2.5
我在 node v6.2.1
上遇到了类似的错误
完整消息:
dushyant@dushyant-3543:/mnt/f/git/existing$ npm install
npm WARN package.json angle@0.0.1 No repository field.
npm WARN package.json angle@0.0.1 No license field.
> v8-debug@0.4.6 preinstall /mnt/f/git/existing/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/v8-debug
>
> v8-profiler@5.2.12 preinstall /mnt/f/git/existing/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/v8-profiler
>
> ws@0.4.32 install /mnt/f/git/existing/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)
make: Entering directory '/mnt/f/git/existing/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/ws/build' CXX(target) Release/obj.target/bufferutil/src/bufferutil.o bufferutil.target.mk:92: recipe for target 'Release/obj.target/bufferutil/src/bufferutil.o' failed make: Leaving directory '/mnt/f/git/existing/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/ws/build'
> v8-debug@0.4.6 install /mnt/f/git/existing/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/v8-debug
> node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download: https://node-inspector.s3.amazonaws.com/debug/v0.4.6/node-v46-linux-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for v8-debug@0.4.6 and node@4.4.5 (node-v46 ABI) (falling back to source compile with node-gyp) make: Entering directory '/mnt/f/git/existing/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/v8-debug/build' CXX(target) Release/obj.target/debug/src/debug.o In file included from ../src/debug.cc:2:0: ../node_modules/nan/nan.h:261:25: error: redefinition of ‘template<class T> v8::Local<T>
_NanEnsureLocal(v8::Local<T>)’ NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {
^ ../node_modules/nan/nan.h:256:25: note: ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Handle<T>)’ previously declared here NAN_INLINE v8::Local<T>
_NanEnsureLocal(v8::Handle<T> val) {
^ ../node_modules/nan/nan.h:661:13: error: ‘node::smalloc’ has not been declared
, node::smalloc::FreeCallback callback
^ ../node_modules/nan/nan.h:661:35: error: expected ‘,’ or ‘...’ before ‘callback’
, node::smalloc::FreeCallback callback
^ ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(char*, size_t, int)’: ../node_modules/nan/nan.h:665:50: error: ‘callback’ was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^ ../node_modules/nan/nan.h:665:60: error: ‘hint’ was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^ ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(const char*, uint32_t)’: ../node_modules/nan/nan.h:672:67: error: no matching function for call to ‘New(v8::Isolate*, const char*&, uint32_t&)’
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
^ In file included from ../node_modules/nan/nan.h:25:0,
from ../src/debug.cc:2: /home/dushyant/.node-gyp/4.4.5/include/node/node_buffer.h:31:40: note: candidate: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, v8::Local<v8::String>, node::encoding) <near match> NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
^ /home/dushyant/.node-gyp/4.4.5/include/node/node_buffer.h:31:40: note: conversion of argument 3 would be ill-formed: In file included from ../src/debug.cc:2:0: ../node_modules/nan/nan.h:672:67: error: invalid conversion from ‘uint32_t {aka unsigned int}’ to ‘node::encoding’ [-fpermissive]
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
^ In file included from ../node_modules/nan/nan.h:25:0,
from ../src/debug.cc:2: /home/dushyant/.node-gyp/4.4.5/include/node/node_buffer.h:43:40: note: candidate: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t) <near match> NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
^ /home/dushyant/.node-gyp/4.4.5/include/node/node_buffer.h:43:40: note: conversion of argument 2 would be ill-formed: In file included from ../src/debug.cc:2:0: ../node_modules/nan/nan.h:672:67: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
^ ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(uint32_t)’: ../node_modules/nan/nan.h:676:29: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((size_t)size))’ from ‘v8::MaybeLocal<v8::Object>’ to ‘v8::Local<v8::Object>’
return node::Buffer::New(v8::Isolate::GetCurrent(), size);
^ ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanBufferUse(char*, uint32_t)’: ../node_modules/nan/nan.h:683:12: error: ‘Use’ is not a member of ‘node::Buffer’
return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
^ ../src/debug.cc: In static member function ‘static void nodex::Debug::InternalConstructorName(const v8::FunctionCallbackInfo<v8::Value>&)’: ../src/debug.cc:194:23: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
result_type = "";
^ debug.target.mk:90: recipe for target 'Release/obj.target/debug/src/debug.o' failed make: *** [Release/obj.target/debug/src/debug.o] Error 1 make: Leaving directory '/mnt/f/git/existing/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/v8-debug/build' gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR! System Linux 4.4.0-24-generic gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/mnt/f/git/existing/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/v8-debug/build/debug/v0.4.6/node-v46-linux-x64/debug.node" "--module_name=debug" "--module_path=/mnt/f/git/existing/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/v8-debug/build/debug/v0.4.6/node-v46-linux-x64" gyp ERR! cwd /mnt/f/git/existing/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/v8-debug gyp ERR! node -v v4.4.5 gyp ERR! node-gyp -v v3.3.1 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/nodejs /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build
--fallback-to-build --module=/mnt/f/git/existing/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/v8-debug/build/debug/v0.4.6/node-v46-linux-x64/debug.node
--module_name=debug --module_path=/mnt/f/git/existing/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/v8-debug/build/debug/v0.4.6/node-v46-linux-x64' (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/mnt/f/git/existing/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/v8-debug/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at emitTwo (events.js:87:13) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:172:7) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:827:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5) node-pre-gyp ERR! System Linux
4.4.0-24-generic node-pre-gyp ERR! command "/usr/bin/nodejs" "/mnt/f/git/existing/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/v8-debug/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd /mnt/f/git/existing/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/v8-debug node-pre-gyp ERR! node -v v4.4.5 node-pre-gyp ERR! node-pre-gyp -v v0.6.28 node-pre-gyp ERR! not ok Failed to execute '/usr/bin/nodejs /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build
--fallback-to-build --module=/mnt/f/git/existing/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/v8-debug/build/debug/v0.4.6/node-v46-linux-x64/debug.node
--module_name=debug --module_path=/mnt/f/git/existing/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/v8-debug/build/debug/v0.4.6/node-v46-linux-x64' (1)
> v8-profiler@5.2.12 install /mnt/f/git/existing/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/v8-profiler
> node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download: https://node-inspector.s3.amazonaws.com/profiler/v5.2.12/node-v46-linux-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for v8-profiler@5.2.12 and node@4.4.5 (node-v46 ABI) (falling back to source compile with node-gyp) make: Entering directory '/mnt/f/git/existing/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/v8-profiler/build' CXX(target) Release/obj.target/profiler/src/profiler.o CXX(target) Release/obj.target/profiler/src/cpu_profiler.o CXX(target) Release/obj.target/profiler/src/cpu_profile.o CXX(target) Release/obj.target/profiler/src/cpu_profile_node.o CXX(target) Release/obj.target/profiler/src/heap_profiler.o CXX(target) Release/obj.target/profiler/src/heap_snapshot.o CXX(target) Release/obj.target/profiler/src/heap_output_stream.o CXX(target) Release/obj.target/profiler/src/heap_graph_node.o CXX(target) Release/obj.target/profiler/src/heap_graph_edge.o SOLINK_MODULE(target) Release/obj.target/profiler.node COPY Release/profiler.node COPY /mnt/f/git/existing/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/v8-profiler/build/profiler/v5.2.12/node-v46-linux-x64/profiler.node TOUCH Release/obj.target/action_after_build.stamp make: Leaving directory '/mnt/f/git/existing/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/v8-profiler/build' npm ERR! Linux 4.4.0-24-generic npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" npm ERR! node v4.4.5 npm ERR! npm v2.15.5 npm ERR! code ELIFECYCLE
npm ERR! v8-debug@0.4.6 install: `node-pre-gyp install
--fallback-to-build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the v8-debug@0.4.6 install script 'node-pre-gyp install
--fallback-to-build'. npm ERR! This is most likely a problem with the v8-debug package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-pre-gyp install --fallback-to-build npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs v8-debug npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm ERR! npm owner ls v8-debug npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request: npm ERR! /mnt/f/git/existing/npm-debug.log
最佳答案
看来您正在安装 Node 检查器。与node
的版本有关。
我在使用 7.6.0 时遇到同样的问题,但我降级到 6.9.5。我成功安装了 Node 检查器。
同样的问题,node-inspector install failed issue .
提到如何降级,你可以按如下方式进行,
然后你node -v
,你可以看到你想要的node的当前版本。
关于node.js - 找不到 v8-debug@0.4.6 和 node@4.4.5 的预构建二进制文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37873675/
我正在尝试将谷歌地图集成到 Xamarin Android。但是,如标题中所写,收到错误。此错误出现在我的 SetContentView (Resource.Layout.Main); 上,如下所示:
在 Delphi 中如何以非文本模式打开二进制文件?类似于 C 函数 fopen(filename,"rb") 最佳答案 有几个选项。 1。使用文件流 var Stream: TFileStrea
我现在正在处理一个问题,如下所示: 有两个数字 x1 和 x2 并且 x2 > x1。 例如 x1 = 5; x2 = 10; 而且我必须在二进制表示中找到 x1 和 x2 之间的总和。 5 = 10
我有这个“程序集”文件(仅包含 directives ) // declare protected region as somewhere within the stack .equiv prot_s
有没有办法在powershell中确定指定的文件是否包含指定的字节数组(在任何位置)? 就像是: fgrep --binary-files=binary "$data" "$filepath" 当然,
我是一名工程师,而不是软件程序员,所以请原谅我的无知。 我编写了一个 Delphi(7SE) 程序,用于从连接到两个数字温度计的 USB 端口读取“真实”数据类型。 我已经完成了该计划的大部分内容。
我有一些代码,例如: u=(float *)calloc(n, sizeof(float)); for(i=1; i
typedef struct pixel_type { unsigned char r; unsigned char g; unsigned char b;
如何判断二进制数是否为负数? 目前我有下面的代码。它可以很好地转换为二进制文件。转换为十进制时,我需要知道最左边的位是否为 1 以判断它是否为负数,但我似乎无法弄清楚该怎么做。 此外,我如何才能让它返
我有一个带有适当重载的 Vect*float 运算符的 vector 类,我正在尝试创建全局/非成员 float*Vect 运算符,如下所示:(注意这是一个经过大量编辑的示例) class Vect
对于使用 C 编程的项目,我们正在尝试将图像转换为二进制数据,反之亦然。我们在网上找到的所有其他解决方案都是用 C++ 或 Java 编写的。这是我们尝试过的方法: 将图像转换为包含二进制数据的文本文
我需要对列表的元素求和,其中包含所有零或一,如果列表中有 1,则结果为 1,否则为 0。 def binary_search(l, low=0,high=-1): if not l: retu
我到处搜索以找到将 float 转换为八进制或二进制的方法。我知道 float.hex 和 float.fromhex。是否有模块可以对八进制/二进制值执行相同的工作? 例如:我有一个 float 1
当我阅读有关 list.h 文件中的 hlist 的 FreeBSD 源代码时,我对这个宏感到困惑: #define hlist_for_each_entry_safe(tp, p, n, head,
我不知道出了什么问题,也不知道为什么会出现此错误。我四处搜索,但我终究无法弄明白。 void print_arb_base(unsigned int n, unsigned int b) {
在任何语言中都可以轻松地将十进制转换为二进制,反之亦然,但我需要一个稍微复杂一点的函数。 给定一个十进制数和一个二进制位,我需要知道二进制位是开还是关(真或假)。 示例: IsBitTrue(30,1
在下面的代码中,我创建了两个文件,一个是文本格式,另一个是二进制格式。文件的图标显示相同。但是这两个文件的特征完全相同,包括大小、字符集(==二进制)和流(八位字节)。为什么没有文本文件?因为如果我明
我想通读一个二进制文件。谷歌搜索“python binary eof”引导我here . 现在,问题: 为什么容器(SO 答案中的 x)不包含单个(当前)字节而是包含一大堆字节?我做错了什么? 如果应
为什么只允许以 10 为基数使用小数点?为什么以下会引发语法错误? 0b1011101.1101 我输入的数字是否有歧义?除了 93.8125 之外,字符串似乎没有其他可能的数字 同样的问题也适用于其
boost 库中有二进制之类的东西吗?例如我想写: binary a; 我很惭愧地承认我曾尝试找到它(Google、Boost)但没有结果。他们提到了一些关于 binary_int<> 的内容,但我既
我是一名优秀的程序员,十分优秀!