首页 文章

难以使用节点9.11.1和npm 5.6.0在ubuntu 16.04上安装web3(用于Solidity开发)

提问于
浏览
-1

npm WARN不推荐使用fs-promise@2.0.3:使用带有Promise支持的mz或fs-extra ^ 3.0 npm WARN不推荐使用tar.gz@1.0.7:⚠️警告⚠️tar.gz模块已被弃用且您的应用程序容易受到攻击 . 请改用tar模块:https://npmjs.com/tar

scrypt@6.0.3 preinstall / home / eschulton / code / solidity / inbox / node_modules / scrypt node node-scrypt-preinstall.js scrypt@6.0.3 install / home / eschulton / code / solidity / inbox / node_modules / scrypt node -gyp重建

回溯(最近一次调用最后一次):文件"/home/eschulton/.nvm/versions/node/v9.11.1/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py",第13行,在导入gyp文件“/home/eschulton/.nvm/versions/node/v9.11.1/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib / gyp / init .py ", line 8, in import gyp.input File " /home/eschulton/.nvm/versions/node/v9.11.1/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py“,第5行,in来自compiler.ast导入Const ImportError:没有名为compiler.ast gyp ERR的模块!配置错误gyp ERR!堆栈错误: gyp 失败,退出代码:1 gyp ERR!堆栈在ChildProcess.onCpExit(/home/eschulton/.nvm/versions/node/v9.11.1/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:336:16)gyp ERR!在ChildProcess.emit堆栈(events.js:180:13)gyp ERR! Process.ChildProcess._handle.onexit(internal / child_process.js:209:12)gyp ERR! System Linux 4.4.0-119-通用gyp ERR!命令"/home/eschulton/.nvm/versions/node/v9.11.1/bin/node" "/home/eschulton/.nvm/versions/node/v9.11.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd / home / eschulton / code / solidity / inbox / node_modules / scrypt gyp ERR! node -v v9.11.1 gyp ERR! node-gyp -v v3.6.2 gyp ERR!不行npm WARN inbox@1.0.0没有说明npm WARN inbox@1.0.0没有存储库字段 .

错误的ERR!代码ELIFECYCLE npm ERR!错误1 npm ERR! scrypt@6.0.3安装: node-gyp rebuild npm ERR!退出状态1 npm ERR!错误的ERR! scrypt@6.0.3安装脚本失败 . 错误的ERR!这可能不是npm的问题 . 上面可能有额外的日志记录输出 .

错误的ERR!可以在以下位置找到此运行的完整日志:npm ERR! /home/eschulton/.npm/_logs/2018-04-06T23_06_20_693Z-debug.log

1 回答

  • 0

    错误的先决条件:

    sudo apt-get install python-minimal
    

    正确的先决条件:

    sudo apt-get install python
    

相关问题