Composer --version错误:此版本的Node.js需要NODE_MODULE_VERSION 57

时间:2018-04-28 02:33:44

标签: node.js hyperledger-fabric hyperledger hyperledger-composer

我正在关注这里的超级边缘作曲家设置https://hyperledger.github.io/composer/latest/installing/development-tools.html

但是在安装了作曲家之后,我运行了“composer --version”,它会出现以下错误:

module.js:681
  return process.dlopen(module, path._makeLong(filename));
                 ^
Error: The module '/usr/lib/node_modules/composer-cli/node_modules/node-report/api.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 48. This version of Node.js requires
NODE_MODULE_VERSION 57. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at Object.Module._extensions..node (module.js:681:18)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/usr/lib/node_modules/composer-cli/node_modules/node-report/index.js:3:13)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)

我在这里做错了吗? 节点版本:v8.11.1 npm版本:6.0.0 系统:ubuntu 16.04.4 LTS 64bit

在此页面后安装了先决条件: https://hyperledger.github.io/composer/latest/installing/installing-prereqs.html

任何帮助将不胜感激。

0 个答案:

没有答案