python - 我正在尝试安装名为“bcrypt”的 npm 包
问题描述
我对编码相当陌生,我想得到你的帮助,前辈。如何安装“bcrypt”包。我一遍又一遍地遇到同样的错误。它要求我安装最新版本的 python,以便我安装 python-3.8.2 版本。它给了我和以前一样的错误。我也试过$ npm install bcrypt@3.0.6
了。我不断收到的一条错误消息如下。
$ npm install bcrypt
> bcrypt@4.0.1 install C:\Users\Turuu\node_modules\bcrypt
> node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using needle for node-pre-gyp https download
node-pre-gyp WARN Pre-built binaries not installable for bcrypt@4.0.1 and node@12.16.3 (node-v72 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error Remote end closed socket abruptly.
gyp ERR! find Python
gyp ERR! find Python Python is not set from command line or npm configuration
gyp ERR! find Python Python is not set from environment variable PYTHON
gyp ERR! find Python checking if "python" can be used
gyp ERR! find Python - "python" is not in PATH or produced an error
gyp ERR! find Python checking if "python2" can be used
gyp ERR! find Python - "python2" is not in PATH or produced an error
gyp ERR! find Python checking if "python3" can be used
gyp ERR! find Python - "python3" is not in PATH or produced an error
gyp ERR! find Python checking if the py launcher can be used to find Python 2
gyp ERR! find Python - "py.exe" is not in PATH or produced an error
gyp ERR! find Python checking if Python is C:\Python27\python.exe
gyp ERR! find Python - "C:\Python27\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Python37\python.exe
gyp ERR! find Python - "C:\Python37\python.exe" could not be run
gyp ERR! find Python
gyp ERR! find Python **********************************************************
gyp ERR! find Python You need to install the latest version of Python.
gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
gyp ERR! find Python you can try one of the following options:
gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe"
gyp ERR! find Python (accepted by both node-gyp and npm)
gyp ERR! find Python - Set the environment variable PYTHON
gyp ERR! find Python - Set the npm configuration variable python:
gyp ERR! find Python npm config set python "C:\Path\To\python.exe"
gyp ERR! find Python For more information consult the documentation at:
gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
gyp ERR! find Python **********************************************************
我觉得我需要在我的 app.js 中需要 python 或安装其他一些 python 包?我很困扰。
解决方案
推荐阅读
- r - 如何根据条件更改列表中多个数据框中的列名称?
- reactjs - 使用其他钩子时 usePrevious 可靠吗?
- c++ - 我无法让我的 MergeSort 实现运行
- javascript - 使用 AJAX 在传单上重新加载热图
- java - 如何在 Android 上为 Highcharts 正确配置 DateTime 轴?
- hibernate - 比较 dateCreated 的查询不适用于在 Grails 3.3.10 的测试事务中创建的测试数据
- matplotlib - 从 matplotlib.animation 加载“FuncAnimation”时遇到问题
- flutter - 我该如何解决颤振错误
- javascript - 如何在页面滚动上创建画布动画
- arrays - 如何在 Ruby 中将数组添加到 CSV 文件的列中?