依赖项构建时 npm install 失败

苏雷什·普拉贾帕蒂

我正在运行npm install以下 package.json 项目文件:

{
  "name": "tradesync",
  "version": "1.0.0",
  "description": "",
  "main": "consumer.js",
  "dependencies": {
    "async": "^2.6.1",
    "avsc": "^5.1.1",
    "cron": "^1.3.0",
    "deepstream.io-client-js": "^2.3.0",
    "firebase-admin": "^5.5.1",
    "got": "^8.3.1",
    "kafka-avro": "^0.8.0",
    "mysql": "^2.15.0",
    "node-avro-io": "^1.0.1",
    "node-cron": "^1.2.1",
    "node-rdkafka": "^2.2.2",
    "orderbook-engine": "^1.1.2",
    "requestretry": "^1.12.2",
    "schema-registry": "^1.17.0",
    "slack-node": "^0.1.8",
    "socket.io-client": "^2.0.4",
    "tedious": "^2.1.5",
    "tedious-connection-pool": "^1.0.5",
    "underscore": "^1.8.3",
    "winston": "^2.4.1"
  },
  "devDependencies": {},
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [
    "ordermatcher",
    "mywallet"
  ],
  "author": "",
  "license": "ISC",
  "bugs": {
    "url": ""
  },
  "homepage": ""
}

它正在破坏并在 v8 函数中显示错误日志,这是错误日志的部分快照

/home/local/mywallet/suresh.prajapati/.node-gyp/10.6.0/include/node/v8.h:3914:44: note:   candidate expects 1 argument, 2 provided
../src/Int64.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Int64::Sub(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/Int64.cc:361:53: error: no matching function for call to ‘v8::Function::NewInstance(int, v8::Local<v8::Value> [2])’
   Local<Object> instance = cons->NewInstance(2, argv);
                                                     ^
In file included from /home/local/mywallet/suresh.prajapati/.node-gyp/10.6.0/include/node/node.h:63:0,
                 from ../src/Int64.cc:5:
/home/local/mywallet/suresh.prajapati/.node-gyp/10.6.0/include/node/v8.h:3911:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>, int, v8::Local<v8::Value>*) const
   V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
                                            ^
/home/local/mywallet/suresh.prajapati/.node-gyp/10.6.0/include/node/v8.h:3911:44: note:   candidate expects 3 arguments, 2 provided
/home/local/mywallet/suresh.prajapati/.node-gyp/10.6.0/include/node/v8.h:3914:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
                                            ^
/home/local/mywallet/suresh.prajapati/.node-gyp/10.6.0/include/node/v8.h:3914:44: note:   candidate expects 1 argument, 2 provided
Int64.target.mk:102: recipe for target 'Release/obj.target/Int64/src/Int64.o' failed
make: *** [Release/obj.target/Int64/src/Int64.o] Error 1
make: Leaving directory '/home/local/mywallet/suresh.prajapati/projects/tradesync/node_modules/int64-native/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:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12)
gyp ERR! System Linux 4.13.0-45-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build"
gyp ERR! cwd /home/local/mywallet/suresh.prajapati/projects/tradesync/node_modules/int64-native
gyp ERR! node -v v10.6.0
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp configure && node-gyp build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.

这是系统版本信息

节点 - v10.6.0 npm - 6.1.0 Python - 2.7.12

在互联网上搜索,但没有一个真正有帮助。准备尝试任何可以解决上述构建失败问题的方法。

提前致谢。

凯伦·格里戈里安

这可能是节点问题。尝试安装最新的 LTS 版本https://nodejs.org/en/download/

应该修复它。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

当macOS Catalina上存在git软件包依赖项时,“ npm install”失败

来自分类Dev

npm install 突然失败

来自分类Dev

npm install:警告依赖项

来自分类Dev

npm install:解压缩时验证失败

来自分类Dev

npm install firebase总是失败

来自分类Dev

实施firebase时Apache Cordova构建失败:依赖项失败

来自分类Dev

yum install perl 依赖项失败

来自分类Dev

npm install是否排除dev依赖项?

来自分类Dev

npm install不安装任何依赖项

来自分类Dev

npm install becrypt失败Debien weezy

来自分类Dev

npm install phantom.js失败

来自分类Dev

Angular2构建过程(npm install)在'gulp pubget.dart'上失败

来自分类Dev

npm install 上的 Docker 构建失败,原因:connect ECONNREFUSED 104.16.17.35:443

来自分类Dev

npm安装因多层本地依赖项而失败

来自分类Dev

尝试部署流星应用程序。运行NPM INSTALL时失败

来自分类Dev

运行npm install取消构建全局npm

来自分类Dev

使用--production选项和对等依赖项进行npm install

来自分类Dev

npm install不安装模块dev子模块的依赖项

来自分类Dev

npm install在node_modules中创建过多的依赖项

来自分类Dev

npm install因错误“安装无法读取依赖项”而终止

来自分类Dev

npm install是否始终获得依赖项的最新*兼容*版本?

来自分类Dev

无法通过npm install切换到模块依赖项

来自分类Dev

无法读取Windows上的依赖项npm install

来自分类Dev

npm install因错误“安装无法读取依赖项”而终止

来自分类Dev

`npm install` 没有安装本地包的子依赖项

来自分类Dev

npm install 不显示已安装的依赖项

来自分类Dev

堆栈构建由于缺少依赖项而失败

来自分类Dev

npm install -g grunt-cli在Linux中失败

来自分类Dev

npm install 失败,libxmljs 出现 node-gyp 错误

Related 相关文章

  1. 1

    当macOS Catalina上存在git软件包依赖项时,“ npm install”失败

  2. 2

    npm install 突然失败

  3. 3

    npm install:警告依赖项

  4. 4

    npm install:解压缩时验证失败

  5. 5

    npm install firebase总是失败

  6. 6

    实施firebase时Apache Cordova构建失败:依赖项失败

  7. 7

    yum install perl 依赖项失败

  8. 8

    npm install是否排除dev依赖项?

  9. 9

    npm install不安装任何依赖项

  10. 10

    npm install becrypt失败Debien weezy

  11. 11

    npm install phantom.js失败

  12. 12

    Angular2构建过程(npm install)在'gulp pubget.dart'上失败

  13. 13

    npm install 上的 Docker 构建失败,原因:connect ECONNREFUSED 104.16.17.35:443

  14. 14

    npm安装因多层本地依赖项而失败

  15. 15

    尝试部署流星应用程序。运行NPM INSTALL时失败

  16. 16

    运行npm install取消构建全局npm

  17. 17

    使用--production选项和对等依赖项进行npm install

  18. 18

    npm install不安装模块dev子模块的依赖项

  19. 19

    npm install在node_modules中创建过多的依赖项

  20. 20

    npm install因错误“安装无法读取依赖项”而终止

  21. 21

    npm install是否始终获得依赖项的最新*兼容*版本?

  22. 22

    无法通过npm install切换到模块依赖项

  23. 23

    无法读取Windows上的依赖项npm install

  24. 24

    npm install因错误“安装无法读取依赖项”而终止

  25. 25

    `npm install` 没有安装本地包的子依赖项

  26. 26

    npm install 不显示已安装的依赖项

  27. 27

    堆栈构建由于缺少依赖项而失败

  28. 28

    npm install -g grunt-cli在Linux中失败

  29. 29

    npm install 失败,libxmljs 出现 node-gyp 错误

热门标签

归档