热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

win10下安装web3失败问题

1.在安装web3上面出错如下:H:\nodejsData>npminstallweb3>web3@1.0.0-beta.18postinstallH:\nodejsData\n

1.在安装web3上面出错如下:



H:\nodejsData>npm install web3


> web3@1.0.0-beta.18 postinstall H:\nodejsData\node_modules\web3
> lerna bootstrap


lerna info version 2.1.2
lerna info Bootstrapping 19 packages
lerna info lifecycle preinstall
lerna info Installing external dependencies
lerna ERR! execute Error: Command failed: npm install
lerna ERR! execute npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
lerna ERR! execute gyp ERR! configure error
lerna ERR! execute gyp ERR! stack Error: Can't find Python executable "F:\SoftWare\python\python.EXE", you can set the PYTHON env variable.
lerna ERR! execute gyp ERR! stack     at PythonFinder.failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:483:19)
lerna ERR! execute gyp ERR! stack     at PythonFinder. (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:508:16)
lerna ERR! execute gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
lerna ERR! execute gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:152:21)
lerna ERR! execute gyp ERR! System Windows_NT 10.0.14393
lerna ERR! execute gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
lerna ERR! execute gyp ERR! cwd H:\nodejsData\node_modules\web3\packages\web3-eth-accounts\node_modules\scrypt
lerna ERR! execute gyp ERR! node -v v8.4.0
lerna ERR! execute gyp ERR! node-gyp -v v3.6.2
lerna ERR! execute gyp ERR! not ok
lerna ERR! execute npm WARN web3-eth-accounts No repository field.
lerna ERR! execute npm WARN web3-eth-accounts No license field.
lerna ERR! execute
lerna ERR! execute npm ERR! code ELIFECYCLE
lerna ERR! execute npm ERR! errno 1
lerna ERR! execute npm ERR! scrypt@6.0.3 install: `node-gyp rebuild`
lerna ERR! execute npm ERR! Exit status 1
lerna ERR! execute npm ERR!
lerna ERR! execute npm ERR! Failed at the scrypt@6.0.3 install script.
lerna ERR! execute npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
lerna ERR! execute
lerna ERR! execute npm ERR! A complete log of this run can be found in:
lerna ERR! execute npm ERR!     C:\Program Files\nodejs\node_cache\_logs\2017-09-02T23_05_22_987Z-debug.log
lerna ERR! execute
lerna ERR! execute > scrypt@6.0.3 preinstall H:\nodejsData\node_modules\web3\packages\web3-eth-accounts\node_modules\scrypt
lerna ERR! execute > node node-scrypt-preinstall.js
lerna ERR! execute
lerna ERR! execute
lerna ERR! execute > scrypt@6.0.3 install H:\nodejsData\node_modules\web3\packages\web3-eth-accounts\node_modules\scrypt
lerna ERR! execute > node-gyp rebuild
lerna ERR! execute
lerna ERR! execute
lerna ERR! execute H:\nodejsData\node_modules\web3\packages\web3-eth-accounts\node_modules\scrypt>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "" rebuild )
lerna ERR! execute
lerna ERR! execute     at Promise.all.then.arr (H:\nodejsData\node_modules\execa\index.js:236:11)
lerna ERR! execute     at
lerna ERR! execute     at process._tickCallback (internal/process/next_tick.js:188:7)
lerna ERR! execute  callback with error
lerna ERR! execute  { Error: Command failed: npm install
lerna ERR! execute npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
lerna ERR! execute gyp ERR! configure error
lerna ERR! execute gyp ERR! stack Error: Can't find Python executable "F:\SoftWare\python\python.EXE", you can set the PYTHON env variable.
lerna ERR! execute gyp ERR! stack     at PythonFinder.failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:483:19)
lerna ERR! execute gyp ERR! stack     at PythonFinder. (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:508:16)
lerna ERR! execute gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
lerna ERR! execute gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:152:21)
lerna ERR! execute gyp ERR! System Windows_NT 10.0.14393
lerna ERR! execute gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
lerna ERR! execute gyp ERR! cwd H:\nodejsData\node_modules\web3\packages\web3-eth-accounts\node_modules\scrypt
lerna ERR! execute gyp ERR! node -v v8.4.0
lerna ERR! execute gyp ERR! node-gyp -v v3.6.2
lerna ERR! execute gyp ERR! not ok
lerna ERR! execute npm WARN web3-eth-accounts No repository field.
lerna ERR! execute npm WARN web3-eth-accounts No license field.
lerna ERR! execute
lerna ERR! execute npm ERR! code ELIFECYCLE
lerna ERR! execute npm ERR! errno 1
lerna ERR! execute npm ERR! scrypt@6.0.3 install: `node-gyp rebuild`
lerna ERR! execute npm ERR! Exit status 1
lerna ERR! execute npm ERR!
lerna ERR! execute npm ERR! Failed at the scrypt@6.0.3 install script.
lerna ERR! execute npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
lerna ERR! execute
lerna ERR! execute npm ERR! A complete log of this run can be found in:
lerna ERR! execute npm ERR!     C:\Program Files\nodejs\node_cache\_logs\2017-09-02T23_05_22_987Z-debug.log
lerna ERR! execute
lerna ERR! execute > scrypt@6.0.3 preinstall H:\nodejsData\node_modules\web3\packages\web3-eth-accounts\node_modules\scrypt
lerna ERR! execute > node node-scrypt-preinstall.js
lerna ERR! execute
lerna ERR! execute
lerna ERR! execute > scrypt@6.0.3 install H:\nodejsData\node_modules\web3\packages\web3-eth-accounts\node_modules\scrypt
lerna ERR! execute > node-gyp rebuild
lerna ERR! execute
lerna ERR! execute
lerna ERR! execute H:\nodejsData\node_modules\web3\packages\web3-eth-accounts\node_modules\scrypt>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "" rebuild )
lerna ERR! execute
lerna ERR! execute     at Promise.all.then.arr (H:\nodejsData\node_modules\execa\index.js:236:11)
lerna ERR! execute     at
lerna ERR! execute     at process._tickCallback (internal/process/next_tick.js:188:7)
lerna ERR! execute   stack: 'Error: Command failed: npm install\nnpm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue\ngyp ERR! configure error \ngyp ERR! stack Error: Can\'t find Python executable "F:\\SoftWare\\python\\python.EXE", you can set the PYTHON env variable.\ngyp ERR! stack     at PythonFinder.failNoPython (C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\lib\\configure.js:483:19)\ngyp ERR! stack     at PythonFinder. (C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\lib\\configure.js:508:16)\ngyp ERR! stack     at C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\graceful-fs\\polyfills.js:284:29\ngyp ERR! stack     at FSReqWrap.oncomplete (fs.js:152:21)\ngyp ERR! System Windows_NT 10.0.14393\ngyp ERR! command "C:\\\\Program Files\\\\nodejs\\\\node.exe" "C:\\\\Program Files\\\\nodejs\\\\node_modules\\\\npm\\\\node_modules\\\\node-gyp\\\\bin\\\\node-gyp.js" "rebuild"\ngyp ERR! cwd H:\\nodejsData\\node_modules\\web3\\packages\\web3-eth-accounts\\node_modules\\scrypt\ngyp ERR! node -v v8.4.0\ngyp ERR! node-gyp -v v3.6.2\ngyp ERR! not ok \nnpm WARN web3-eth-accounts No repository field.\nnpm WARN web3-eth-accounts No license field.\n\nnpm ERR! code ELIFECYCLE\nnpm ERR! errno 1\nnpm ERR! scrypt@6.0.3 install: `node-gyp rebuild`\nnpm ERR! Exit status 1\nnpm ERR! \nnpm ERR! Failed at the scrypt@6.0.3 install script.\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     C:\\Program Files\\nodejs\\node_cache\\_logs\\2017-09-02T23_05_22_987Z-debug.log\n\n> scrypt@6.0.3 preinstall H:\\nodejsData\\node_modules\\web3\\packages\\web3-eth-accounts\\node_modules\\scrypt\n> node node-scrypt-preinstall.js\n\n\n> scrypt@6.0.3 install H:\\nodejsData\\node_modules\\web3\\packages\\web3-eth-accounts\\node_modules\\scrypt\n> node-gyp rebuild\n\n\r\nH:\\nodejsData\\node_modules\\web3\\packages\\web3-eth-accounts\\node_modules\\scrypt>if not defined npm_config_node_gyp (node "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\node-gyp-bin\\\\..\\..\\node_modules\\node-gyp\\bin\\node-gyp.js" rebuild )  else (node "" rebuild ) \r\n\n    at Promise.all.then.arr (H:\\nodejsData\\node_modules\\execa\\index.js:236:11)\n    at \n    at process._tickCallback (internal/process/next_tick.js:188:7)',
lerna ERR! execute   code: 1,
lerna ERR! execute   killed: false,
lerna ERR! execute   stdout: '\n> scrypt@6.0.3 preinstall H:\\nodejsData\\node_modules\\web3\\packages\\web3-eth-accounts\\node_modules\\scrypt\n> node node-scrypt-preinstall.js\n\n\n> scrypt@6.0.3 install H:\\nodejsData\\node_modules\\web3\\packages\\web3-eth-accounts\\node_modules\\scrypt\n> node-gyp rebuild\n\n\r\nH:\\nodejsData\\node_modules\\web3\\packages\\web3-eth-accounts\\node_modules\\scrypt>if not defined npm_config_node_gyp (node "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\node-gyp-bin\\\\..\\..\\node_modules\\node-gyp\\bin\\node-gyp.js" rebuild )  else (node "" rebuild ) \r\n',
lerna ERR! execute   stderr: 'npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue\ngyp ERR! configure error \ngyp ERR! stack Error: Can\'t find Python executable "F:\\SoftWare\\python\\python.EXE", you can set the PYTHON env variable.\ngyp ERR! stack     at PythonFinder.failNoPython (C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\lib\\configure.js:483:19)\ngyp ERR! stack     at PythonFinder. (C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\lib\\configure.js:508:16)\ngyp ERR! stack     at C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\graceful-fs\\polyfills.js:284:29\ngyp ERR! stack     at FSReqWrap.oncomplete (fs.js:152:21)\ngyp ERR! System Windows_NT 10.0.14393\ngyp ERR! command "C:\\\\Program Files\\\\nodejs\\\\node.exe" "C:\\\\Program Files\\\\nodejs\\\\node_modules\\\\npm\\\\node_modules\\\\node-gyp\\\\bin\\\\node-gyp.js" "rebuild"\ngyp ERR! cwd H:\\nodejsData\\node_modules\\web3\\packages\\web3-eth-accounts\\node_modules\\scrypt\ngyp ERR! node -v v8.4.0\ngyp ERR! node-gyp -v v3.6.2\ngyp ERR! not ok \nnpm WARN web3-eth-accounts No repository field.\nnpm WARN web3-eth-accounts No license field.\n\nnpm ERR! code ELIFECYCLE\nnpm ERR! errno 1\nnpm ERR! scrypt@6.0.3 install: `node-gyp rebuild`\nnpm ERR! Exit status 1\nnpm ERR! \nnpm ERR! Failed at the scrypt@6.0.3 install script.\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     C:\\Program Files\\nodejs\\node_cache\\_logs\\2017-09-02T23_05_22_987Z-debug.log\n',
lerna ERR! execute   failed: true,
lerna ERR! execute   signal: null,
lerna ERR! execute   cmd: 'npm install',
lerna ERR! execute   timedOut: false }
lerna WARN complete Waiting for 1 child process to exit. CTRL-C to exit immediately.
npm WARN Error: EPERM: operation not permitted, scandir 'H:\nodejsData\node_modules\read-pkg-up\node_modules'
npm WARN  { Error: EPERM: operation not permitted, scandir 'H:\nodejsData\node_modules\read-pkg-up\node_modules'
npm WARN   stack: 'Error: EPERM: operation not permitted, scandir \'H:\\nodejsData\\node_modules\\read-pkg-up\\node_modules\'',
npm WARN   errno: -4048,
npm WARN   code: 'EPERM',
npm WARN   syscall: 'scandir',
npm WARN   path: 'H:\\nodejsData\\node_modules\\read-pkg-up\\node_modules' }
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! web3@1.0.0-beta.18 postinstall: `lerna bootstrap`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the web3@1.0.0-beta.18 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.


npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Program Files\nodejs\node_cache\_logs\2017-09-02T23_05_37_212Z-debug.log


纠结了一个星期才解决了,① 首先可以先通过 npm cache verify 清理下缓存,在进行安装

② 如果还是安装失败可以尝试 ---   npm install web3@^0.20.0  或者 npm install v6  ,进行安装npm install web3

③ 个人是通过 npm install web3@^0.20.0 安装成功的    


推荐阅读
  • Node.js详细安装及环境配置
    1、下载安装根据自己电脑系统及位数选择,我这里选择windows64位.msi格式安装包(官网:https:odejs.orgzh-cndownload).msi和.zip格式区别 ... [详细]
  • Node.js学习笔记(一)package.json及cnpm
    本文介绍了Node.js中包的概念,以及如何使用包来统一管理具有相互依赖关系的模块。同时还介绍了NPM(Node Package Manager)的基本介绍和使用方法,以及如何通过NPM下载第三方模块。 ... [详细]
  • Centos7.6安装Gitlab教程及注意事项
    本文介绍了在Centos7.6系统下安装Gitlab的详细教程,并提供了一些注意事项。教程包括查看系统版本、安装必要的软件包、配置防火墙等步骤。同时,还强调了使用阿里云服务器时的特殊配置需求,以及建议至少4GB的可用RAM来运行GitLab。 ... [详细]
  • 本文介绍了Composer依赖管理的重要性及使用方法。对于现代语言而言,包管理器是标配,而Composer作为PHP的包管理器,解决了PEAR的问题,并且使用简单,方便提交自己的包。文章还提到了使用Composer能够避免各种include的问题,避免命名空间冲突,并且能够方便地安装升级扩展包。 ... [详细]
  • 本文详细介绍了如何创建和使用VUE uni-app开发环境,包括通过HBuilderX可视化界面和通过vue-cli命令执行的方法。文章内容简单清晰,易于学习与理解。通过学习本文,读者可以深入了解VUE uni-app开发环境,并通过实践验证掌握具体的使用情况。编程笔记将为读者推送更多相关知识点的文章,欢迎关注! ... [详细]
  • 本文介绍了JavaScript进化到TypeScript的历史和背景,解释了TypeScript相对于JavaScript的优势和特点。作者分享了自己对TypeScript的观察和认识,并提到了在项目开发中使用TypeScript的好处。最后,作者表示对TypeScript进行尝试和探索的态度。 ... [详细]
  • 本文介绍了使用readlink命令获取文件的完整路径的简单方法,并提供了一个示例命令来打印文件的完整路径。共有28种解决方案可供选择。 ... [详细]
  • 程序员如何选择机械键盘轴体?红轴和茶轴对比
    本文介绍了程序员如何选择机械键盘轴体,特别是红轴和茶轴的对比。同时还介绍了U盘安装Linux镜像的步骤,以及在Linux系统中安装软件的命令行操作。此外,还介绍了nodejs和npm的安装方法,以及在VSCode中安装和配置常用插件的方法。最后,还介绍了如何在GitHub上配置SSH密钥和git的基本配置。 ... [详细]
  • 【前端工具】nodejs+npm+vue 安装(windows)
    预备先看看这几个是干嘛的,相互的关系是啥。nodejs是语言,类比到php。npm是个包管理,类比到composer。vue是个框架&# ... [详细]
  • 必须先赞下国人npm库作品:node-images(https:github.comzhangyuanweinode-images),封装了跨平台的C++逻辑,形成nodejsAP ... [详细]
  • React 小白初入门
    推荐学习:React官方文档:https:react.docschina.orgReact菜鸟教程:https:www.runoob.c ... [详细]
  • RN即ReactNative基于React框架针对移动端的跨平台框架,在学习RN前建议最好熟悉下html,css,js,当然如果比较急,那就直接上手吧,毕竟用学习前面基础的时间,R ... [详细]
  • 先下载nodejs针对windows安装安装就行。自定义安装在对应的文件夹就行安装完之后需要在电脑的环境变量里面添加两个路径通过cmd可以查看自己node的版本号最后通过运行npm ... [详细]
  • 基于dlib的人脸68特征点提取(眨眼张嘴检测)python版本
    文章目录引言开发环境和库流程设计张嘴和闭眼的检测引言(1)利用Dlib官方训练好的模型“shape_predictor_68_face_landmarks.dat”进行68个点标定 ... [详细]
  • 本文整理了315道Python基础题目及答案,帮助读者检验学习成果。文章介绍了学习Python的途径、Python与其他编程语言的对比、解释型和编译型编程语言的简述、Python解释器的种类和特点、位和字节的关系、以及至少5个PEP8规范。对于想要检验自己学习成果的读者,这些题目将是一个不错的选择。请注意,答案在视频中,本文不提供答案。 ... [详细]
author-avatar
小白石
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有