本文介绍了bcrypt@1.0.3 install:`node-pre-gyp install --fallback-to-build`的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在安装bcrypt时,我在Windows机器中收到此错误,我正在使用

While installing bcrypt I'm getting this error in my windows machine, I'm using

  • 节点v8.9.4
  • npm v5.6.0
  • bcrypt v1.0.3

这可能不是npm的问题.上面可能还有其他日志记录输出. npm ERR!此运行的完整日志 可以在以下位置找到:npm ERR! C:\ Users \ user \ AppData \ Roaming \ npm-cache_logs \ 2018-02-25T14_42_29_5 29Z-debug.log

This is probably not a problem with npm. There is likely additional log ging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\user\AppData\Roaming\npm-cache_logs\2018-02-25T14_42_29_5 29Z-debug.log

推荐答案

最后,经过大量研究,我终于解决了这个问题.因此,那些面临此问题的人只需执行以下过程,

Finally after many research I solve this problem. So, guys those who are facing this problem just do the below processes,

我刚刚安装了python并设置了环境变量,现在它对我来说非常完美.

I just installed python and set the environment variables now it's working perfect for me.

  • 安装Python(在Windows中安装时,您可以选择在环境变量中添加路径的选项,只需勾选复选框,否则即可)
  • 在环境变量中设置路径
  • 现在将下载的python.exe文件存储在此目录"c:\ Python \ 27 \ python.exe"中
  • 现在在终端npm config set python "c:\Python\27\python.exe"
  • 中运行此cmd
  • Install Python (while installing in windows you can get the option for add path in environment variables, just tick the check box or else)
  • Set the path in environment variables
  • Now store the downloaded python.exe file in this directory "c:\Python\27\python.exe"
  • Now run this cmd in terminal npm config set python "c:\Python\27\python.exe"

现在执行npm install或运行您的项目.我想现在您的问题解决了. :-)

Now do npm install or run your project.I think now your problem is solved. :-)

这篇关于bcrypt@1.0.3 install:`node-pre-gyp install --fallback-to-build`的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-29 16:45
查看更多